Stand down! I got it with ‘pre_get_posts’:
add_action( 'pre_get_posts', 'pre_service_archive' );
function pre_service_archive() {
if( is_post_type_archive( 'service' ) ) remove_theme_support( 'infinite-scroll' );
}
Stand down! I got it with ‘pre_get_posts’:
add_action( 'pre_get_posts', 'pre_service_archive' );
function pre_service_archive() {
if( is_post_type_archive( 'service' ) ) remove_theme_support( 'infinite-scroll' );
}