Product RSS feed #118

Closed
Ramoonus opened this Issue Oct 29, 2011 · 7 comments

Projects

None yet

5 participants

@Ramoonus

Title says it all

@mikejolley
WooCommerce member

demo.woothemes.com/woostore/feed?post_type=product

@Ramoonus

domain/feed/product would be prettier
and it`s not advertised in wp_head

@Ramoonus

something like http://yoast.com/custom-post-type-feeds-google/ but without the SEO bit

@echogit

It would be nice to have the image thumbnail and the price/promotion price on the RSS

@locvfx

Guys, how to add product thumbnails to the feed ? Please help.

@locvfx

I solved my problem and here is how add thumbnail to Woocommerce Products RSS feed

To add thumbnail to RSS (also works for Woocommerce product RSS) , you need to install a plugin called "Featured Images in RSS w/ Size and Position" , you might search for the keyword "featured Images in RSS" in Wordpress Plugin Store

Ok, Now you check if the image is exist in your RSS buy follow this link :
RSS for normal posts : htttp://yourdomain.com/feed/
RSS for Woocommerce products : htttp://yourdomain.com/feed/?post_type=product


Next, let say you have two store and you want to feed products for each other. You might need this plugin : RSS Feed Widget

Live demo : www.couponandpromo.com/feed/?post_type=product
Cheers

@WordCommerce

Goes to functions.php:

//RSS Thumbnails

function insertThumbnailRSS($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
}
return $content;
}

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

@claudiosmweb claudiosmweb locked and limited conversation to collaborators Mar 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.