回答編集履歴

4

文脈の整頓

2018/10/12 07:06

投稿

CHERRY
CHERRY

スコア25171

test CHANGED
@@ -22,7 +22,9 @@
22
22
 
23
23
 
24
24
 
25
+ の部分で抜粋等の条件判断して、振り分けています。
26
+
25
- の部分で抜粋等の条件判断して、振り分けていますので、本文は、`$post->post_content` に全文が入っているので、強制的に全部を表示するなら、条件判断を全てやめて、こんな感じに置き換えるとどうでしょうか?
27
+ 本文は、`$post->post_content` に全文が入っているので、強制的に全部を表示するなら、条件判断を全てやめて、こんな感じに置き換えるとどうでしょうか?
26
28
 
27
29
 
28
30
 

3

追記・修正

2018/10/12 07:06

投稿

CHERRY
CHERRY

スコア25171

test CHANGED
@@ -1,6 +1,28 @@
1
+ > <?php if (get_option('rss_use_excerpt')) : ?>
2
+
3
+ > <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
4
+
5
+ > <?php else : ?>
6
+
7
+ > <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
8
+
1
- 本文は、`$post->post_content` に全文が入っているので、強制的に全部を表示するなら、条件判断を全てやめて、こんな感じでどうでしょうか?
9
+ > <?php $content = get_the_content_feed('rss2'); ?>
10
+
11
+ > <?php if ( strlen( $content ) > 0 ) : ?>
12
+
13
+ > <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
14
+
15
+ > <?php else : ?>
16
+
17
+ > <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
18
+
19
+ > <?php endif; ?>
20
+
21
+ > <?php endif; ?>
2
22
 
3
23
 
24
+
25
+ の部分で抜粋等の条件判断して、振り分けていますので、本文は、`$post->post_content` に全文が入っているので、強制的に全部を表示するなら、条件判断を全てやめて、こんな感じに置き換えるとどうでしょうか?
4
26
 
5
27
 
6
28
 

2

修正

2018/10/12 07:03

投稿

CHERRY
CHERRY

スコア25171

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ```PHP
8
8
 
9
- global $post;
9
+ <?php global $post; ?>
10
10
 
11
11
  <description><![CDATA[<?php echo $post->post_content; ?>]]></description>
12
12
 

1

修正

2018/10/12 05:15

投稿

CHERRY
CHERRY

スコア25171

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- ```
7
+ ```PHP
8
8
 
9
9
  global $post;
10
10