Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

lyndonr on "[Plugin: WordPress SEO by Yoast] 1.4.4 broken RSS feed"

$
0
0

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!

http://wordpress.org/extend/plugins/wordpress-seo/


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>