Here’s how to do it!
add_action( 'pre_get_posts', 'my_query_mods' );
function my_query_mods( $query ){
if( is_admin() ) return;
if( is_main_query() && is_home() )
$query->set( 'post_type', 'texture' );
}
Code monkey get up, get coffee…
Here’s how to do it!
add_action( 'pre_get_posts', 'my_query_mods' );
function my_query_mods( $query ){
if( is_admin() ) return;
if( is_main_query() && is_home() )
$query->set( 'post_type', 'texture' );
}