RSS – Custom Post Type with Featured Image
-
Hi guys,
Does anyone have RSS working with Custom Post Types and Image?
I currently have it showing RSS with Custom Post Type, but it doesn’t show the featured image.
Modify functions.php and added in line 333.
/*------------------------------------------------------------------------------------------------------------*/ /* Create custom post types RSS /* Source: http://www.ballyhooblog.com/add-custom-post-types-wordpress-main-feed/ /*------------------------------------------------------------------------------------------------------------*/ function myfeed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) $qv['post_type'] = get_post_types($args = array( 'public' => true, '_builtin' => false )); array_push($qv['post_type'],'post'); return $qv; } add_filter('request', 'myfeed_request');
- The topic ‘RSS – Custom Post Type with Featured Image’ is closed to new replies.