-
AuthorPosts
-
December 31st, 2013 at 11:32 #15160
Mat
Hi,
i made a little change on the function file to add post thumbnail to my rss using this code :
function rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = ‘<p>’ . get_the_post_thumbnail($post->ID,array(150,150)) .'</p>’ . get_the_content();
}
return $content;
}
add_filter(‘the_excerpt_rss’, ‘rss_post_thumbnail’);
add_filter(‘the_content_feed’, ‘rss_post_thumbnail’);
This was wroking fine, but when i updated to parabola 1.3.1, i had a small problem : my rss feed was displaying the full post (and not the excerpt as set). So i deactivated this extra code, and RSS feed came back to normal. But i really want to keep this change on my feed. Do you have any idea where it can comme from?
I will test also on 1.3.2..Thanks guys!
December 31st, 2013 at 17:27 #15171Mat
same issue on parabola 1.3.2..
January 4th, 2014 at 16:24 #15429Zed
Cryout Creations mastermindUse get_the_excerpt(); instead of get_the_content(); in your code.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.January 9th, 2014 at 15:27 #15663Mat
Thanks for the answer.. Seems pretty logical in fact!
I made the change an it seems to be good! I will check with my neswletter (mailchimp) if it’s OK.Thanks!
-
AuthorPosts
The topic ‘issue with parabola 1.3.1’ is closed to new replies.