OK – update. Still haven’t figured out how to get custom posts to add to the featured section but for anyone trying to get their custom posts and categories to show up in their blog feed – here is the code I used below.
<?php
// Show posts of 'post' and '<strong>your_custom_post_name</strong>' post types on home page //
add_action( 'pre_get_posts', 'add_my_post_types_to_query' );
function add_my_post_types_to_query( $query ) {
if ( is_home() && $query->is_main_query() )
$query->set( 'post_type', array( 'post', '<strong>your_custom_post_name</strong>' ) );
return $query;
}
function reg_cat() {
register_taxonomy_for_object_type('category','<strong>your_custom_post_name</strong>');
}
add_action('init', 'reg_cat');
function init_category($request) {
$vars = $request->query_vars;
if (is_category() && !is_category('Blog') && !array_key_exists('post_type', $vars)) :
$vars = array_merge(
$vars,
array('post_type' => 'any')
);
$request->query_vars = $vars;
endif;
return $request;
}
add_filter('pre_get_posts', 'init_category');
php?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]