Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jnrbsn

    (@jnrbsn)

    Upon further investigation, looks like this is due to the behavior of the feed reader (Google Reader), not WordPress.

    When you update a post in WordPress, the only thing that changes in the feed is the content you updated. The “pubDate” stays the same, and the post is in the same position in the feed (it doesn’t move to the top or anything). It appears that if Google Reader detects that the content of an item has changed, it will redisplay it. I’ve confirmed this by updating a post outside of “the loop” (one that’s not in the feed anymore), and Google Reader does NOT redisplay it.

    I know this thread is a little old, but I think this is what you’re looking for… Just add the code below to the functions.php file in your theme.

    function mytheme_content_feed($feed_type = null) {
    	if ( !$feed_type )
    		$feed_type = get_default_feed();
    
    	global $more;
    	$more_restore = $more;
    	$more = 0;
    	$content = apply_filters('the_content', get_the_content());
    	$more = $more_restore;
    	$content = str_replace(']]>', ']]& gt;', $content);
    	return $content;
    }
    add_filter('the_content_feed', 'mytheme_content_feed');

    Remove the space between the ‘&’ and the ‘gt;’ on line 10.

Viewing 2 replies - 1 through 2 (of 2 total)