Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Fix WordPress Post Pagination Hiding Content in RSS Feed

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Recently one of our users complained to us about WordPress post pagination hiding the full content in their RSS feed. After doing a quick research, it turns out that this is a WordPress core bug (#10984) that was reported 4 years ago and is still not fixed. In this article, we will show you how to fix the WordPress post pagination hiding content in RSS feeds.

The problem occurs when you split your WordPress posts in multiple pages, and if you have set RSS feeds to display full text, then your RSS feeds will only display the content of the first page of the post (i.e before <!--nextpage--> tag).

Thankfully one of the contributors, Simon Wheatley, have posted a work around that fixes the bug.

All you need to do is add this code in your theme’s functions.php file or in a site-specific plugin:


function wpb_full_text_for_feeds( $content ) {
	if ( ! is_feed() )
		return $content;
	global $post;
	$content = $post->post_content;
	return $content;
}

add_filter( 'the_content', 'wpb_full_text_for_feeds', -100 );

The above code adds a filter to the_content allowing the feeds to display full post content and ignoring the pagination (see more examples of how to add content in your RSS feeds). Hopefully this issue will get resolved soon in a future version of WordPress. Until then this workaround will make sure that your subscribers get the full content in their RSS reader.

We hope this article helped you fix WordPress post pagination issue in RSS feeds. Let us know what you think by leaving a comment below or join us on Twitter and Google+.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

3 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Amlan Dutta says

    How do you make the floating bar float and then stop as soon as the content end is reached ,

    Amlan Dutta

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.