// ADD CUSTOM POST TYPES TO THE DEFAULT RSS FEED
function custom_feed_request( $vars ) {
if (isset($vars['feed']) && !isset($vars['post_type']))
$vars['post_type'] = array( 'post', 'site', 'plugin', 'theme', 'person' );
return $vars;
}
add_filter( 'request', 'custom_feed_request' );
Code of Include custom post types in the search results | Wordpress Search Shortcode |
Add your custom post types to your sites main RSS feed by default | Wordpress Search Shortcode |
This will include your custom post types and the post counts for each type in the "Right Now" dashboard widget | Wordpress Search Shortcode |
How to Include custom post types in the search results | Wordpress Search Shortcode |
Category: | Web Tutorial |
Sub Category: | Wordpress Search Shortcode |
Uploaded by: | Admin |