GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How Do I Add Pics To My Wordpress RSS Feed? (https://gfy.com/showthread.php?t=1030177)

IllTestYourGirls 07-13-2011 02:31 PM

How Do I Add Pics To My Wordpress RSS Feed?
 
Anyone know how I can add pictures to my wordpress rss feeds? Like the feed grabs one of the pictures in the post.

And any recommendations for good rss feed widgets so I can place the rss feed on other sites? I see a few nice ones when I google for them, just want some feed back and suggestions.

:thumbsup

fris 07-13-2011 02:47 PM

Quote:

Originally Posted by IllTestYourGirls (Post 18280199)
Anyone know how I can add pictures to my wordpress rss feeds? Like the feed grabs one of the pictures in the post.

And any recommendations for good rss feed widgets so I can place the rss feed on other sites? I see a few nice ones when I google for them, just want some feed back and suggestions.

:thumbsup

if you have featured image try adding this to your functions.php of your theme

Code:

function thumb_feed($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(), 'style' => 'float:right;' ) ) . '' . $content;
}
return $content;
}

add_filter('the_excerpt_rss', 'thumb_feed');
add_filter('the_content_feed', 'thumb_feed');


IllTestYourGirls 07-13-2011 02:59 PM

Thanks fris ill try that.

fris 07-13-2011 05:11 PM

images show up fine though in my rss feeds using the built in gallery system

IllTestYourGirls 07-13-2011 05:29 PM

Strange my pics aren't. I am not putting them in as a gallery but inserting each individual picture, would that cause the picture not to show up in the feed?

fris 07-13-2011 08:00 PM

Quote:

Originally Posted by IllTestYourGirls (Post 18280602)
Strange my pics aren't. I am not putting them in as a gallery but inserting each individual picture, would that cause the picture not to show up in the feed?

probably ;)

would have to look into running though the feed filter so it does work.


All times are GMT -7. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc