I am trying to create a child theme where I have created a custom post type i.e "art". I want to display all CPT posts to the homepage with pagination and the regular post to the post page.
Currently, I set Your latest posts reading settings and add an action that will show my all custom post type at home page.
add_action( 'pre_get_posts', 'add_cpt_to_homepage' );
function add_cpt_to_homepage( $query ) {
if ( is_home() && $query->is_main_query() )
$query->set( 'post_type', array( 'art' ) );
return $query;
}
But my question is, is there any way to show my regular post on a different page?