Php Wordpress通过分页帖子获取内容提要
我有一个wordpress网站,我一直在做它的提要。 我注意到当一篇文章被分页时,它只呈现文章的第一页。 我需要做的是得到文章的所有内容,而不仅仅是第一页Php Wordpress通过分页帖子获取内容提要,php,wordpress,rss,feed,Php,Wordpress,Rss,Feed,我有一个wordpress网站,我一直在做它的提要。 我注意到当一篇文章被分页时,它只呈现文章的第一页。 我需要做的是得到文章的所有内容,而不仅仅是第一页 while( have_posts()) : the_post(); ?> <item> <title><?php the_title_rss(); ?></title> <link><?php the_permalink_rss() ?&
while( have_posts()) : the_post();
?>
<item>
<title><?php the_title_rss(); ?></title>
<link><?php the_permalink_rss() ?></link>
<comments><?php comments_link_feed(); ?></comments>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
<dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
<?php
$pub_date= mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
......
$description = get_post(get_post_thumbnail_id())->post_content; // The Description
$content = get_the_content_feed('rss2');
while(have_posts()):the_post();
?>
]]>