[wp-trac] [WordPress Trac] #10984: If content uses the nextpage tag then only the first page is shown in feeds

WordPress Trac wp-trac at lists.automattic.com
Tue May 11 08:34:00 UTC 2010


#10984: If content uses the nextpage tag then only the first page is shown in feeds
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:                             
     Type:  defect (bug)   |      Status:  new                        
 Priority:  normal         |   Milestone:  3.1                        
Component:  Feeds          |     Version:  2.8.4                      
 Severity:  normal         |    Keywords:  2nd-opinion has-patch early
---------------------------+------------------------------------------------

Comment(by simonwheatley):

 Replying to [comment:15 dd32]:
 > > Is there a filter you can add to the functions.php that would show the
 full content if your viewing a feed?
 >
 > There isnt a filter, But you could certainly do it with sub-10 lines of
 code i'd expect. I dont have a example handy however, or time to test it.
 >

 This works for me:

 {{{
 <?php
 /*
 Plugin Name: Full Text Feeds
 Plugin URI: http://simonwheatley.co.uk/wordpress/full-text-feeds
 Description: Fixes a bug in WP's feeds whereby they are only served with
 the first page.
 Version: 1.1
 Author: Simon Wheatley
 Author URI: http://simonwheatley.co.uk/
 */

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

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

 ?>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10984#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list