Support » Plugin: Yoast SEO » 1.4.4 broken RSS feed

  • upgraded to 1.4.4 this morning. seems to be a conflict with this bit of code I use in my functions.php to include images in my RSS feed. I display the feed on my home page.

    function insertThumbnailRSS($content) {
    	global $post;
    	if ( has_post_thumbnail( $post->ID ) ){
    		$content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail', array( 'alt' => get_the_title(), 'title' => get_the_title() ) ) . '' . $content;
    	return $content;
    	add_filter('the_excerpt_rss', 'insertThumbnailRSS');
    	add_filter('the_content_feed', 'insertThumbnailRSS');

    When I remove this bit from functions, homepage feed works fine, when I include it.. broken. this did not happen in 1.4.3.

    any help is greatly appreciated, thanks!

Viewing 1 replies (of 1 total)
  • hmm… hold the phone. seems I use this bit of code to shorten the RSS cache time. could be the culprit as well

    //shorted cache feed time
    	add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 50;') );

    EDIT: yup that’s it. I guess I’ll just remove this from my functions and deal with the default cache time.

    EDIT2: now it doesn’t work with W3 Total Cache enabled. Seems like there’s some screwy stuff happening with the RSS in the 1.4.4. interested if anyone can confirm this.

Viewing 1 replies (of 1 total)
  • The topic ‘1.4.4 broken RSS feed’ is closed to new replies.