Custom posttype RSS Feed with futured image
-
Hello,
I have a custom post type called books. I use the futured image also with this custom post type. I want to have it’s own RSS Feed. I came accros this piece of code:
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED 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');
But how can I add the images to my custom feed for books?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Custom posttype RSS Feed with futured image’ is closed to new replies.