Hi.
I have customized my archive and single page templates for use in the loop. I’d found some code allowing me to get these cpt’s to show on the homepage, but it killed Xtheme’s blog functionality at the same time. I’m looking for the proper is_blog example I suppose to see how to have it only display the cpt’ version on the home page and not have it effect the blog, or have the blog be separated from the CPT index on the home page…
This allows the CPT to show
add_action( 'pre_get_posts', 'wpse_242473_add_post_type_to_home' );
function wpse_242473_add_post_type_to_home( $query ) {
if( $query->is_main_query() && $query->is_home() ) {
$query->set( 'post_type', array( 'properties') );
}
}
It actually might be a theme template file I have to create for this. I’m still trying to figure it out.
Thanks
B