Thank you very much. It seems like the old function (from Decode 2.9) is still being used here because the page, attachment, revision, and nav_menu_item post types are all being displayed.
So are you replacing the theme with the build I sent you or are you adding it to your child theme? I’ve updated the function a little bit to make it more robust, but the information you sent me makes me think that there is more to the story. If you want, you can replace the function “add_post_types_to_query” in your functions.php with
function add_post_types_to_query( $query ) {
$typelist = 'post';
if ( get_theme_mod( 'add_custom_post_types', '' ) !== '' ) {
$typelist .= ', ' . get_theme_mod( 'add_custom_post_types', '' );
$typelist = explode( ", ", $typelist );
}
if ( is_home() && $query->is_main_query() )
$query->set( 'post_type', $typelist );
return $query;
}
it starts on line 239 for me.