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' );
}
Related Posts:
- Jetpack infinite scroll render – make different depending on post type?
- Jetpack Infinite Scroll won’t fire [closed]
- Custom post metadata not appearing in public API
- Redirect to another page using contact form 7? [closed]
- Remove “show sharing buttons” metabox Jetpack from custom post type
- Register CPT if Jetpack Portfolio is not active and only once
- Infinite scroll doesnt work
- How to get all taxonomies of a post type?
- Permalinks: custom post type -> custom taxonomy -> post
- How to Add Tags to Custom Post Type?
- How come Featured Image isn’t showing up in my Custom Post Type?
- Efficient Taxonomy Intersection
- List Categories for Custom Post Types – WordPress
- How to create a wp_query that contains both meta_query and tax_query
- Display custom post type and custom fields within a Bootstrap Carousel
- Can I have Post Types under other Post Types in Admin menu?
- Extend walker class with custom post types [closed]
- Notice: map_meta_cap was called incorrectly
- Archive page…limiting posts per page
- Seperating Custom Post Search Results
- Use WP_Query object inside a function
- How to have a custom URL structure for a custom post type?
- Custom permalinks – post type – hierarchical taxonomy’s
- How do I create new content pages for my Custom Post Type?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- Custom post types and permalinks : What a mess !
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Custom post type history
- Custom Taxonomy breaking pages permalinks
- Frontend Form for Custom Post Type
- Query Custom Post Types by date (custom field) range
- How to show custom post template from single page?
- Custom query shows custom post types in trash
- Do i need to keep register_post_type in functions.php?
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Custom Post type and Custom Field WP_Query
- Repeating posts when paginating random posts
- Custom post type table
- How to have custom post type /example/ and then posts /example/posts.html
- Multiple Loops On Custom Post Type Template?
- Cannot add custom field to “orderby” parameter in Rest API
- Not Able to Get Custom Post Type Gallery Images URL
- Form action/link to render a plugin in WordPress front-end
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Building a Treatments Page, What Do I Use?
- How do I share categories across multiple post types?
- Is it better to use filter for the_content in archive pages?
- Multiple Frontend Filters Using Advanced Custom Fields
- How do I programmatically create new posts of a custom post type over the XML-RPC API?
- Migrating a taxonomy’s tags to the native category
- Make custom post types and pages place nice, re: rewrite
- How to create subcategory for Custom Post Type?
- how to echo meta tag in header using php
- post_parent in custom post type
- Forms and WordPress Nonce
- How do I add custom HTML to the content of an archive page’s posts?
- How to create connection among state, city, store and store number based on URL
- How to add query args to links to CPT admin submenu
- Templates for hierarchical custom post type
- filter by custom taxonomy using ajax
- Get post content from another section in custom single page
- How to get the current category with custom posts
- Modify Posts from Custom_Post_Type within the plugin
- List child categories from parent category on custom taxonomy page
- Custom post type – change name in sidebar
- Create a custom taxonomy template that loops through child categories in term order?
- custom post type: own database table structure and custom “new-post” interface
- Custom Post Types and Complex Content Hierarchy
- How do I “trash” a custom post type post while logged in as Admin
- Pagenavi Plugin and Custom Post Type – Multipage results
- How to display custom taxonomy term specific post?
- Limit custom post type to the authors only on front-end!
- Remove Header and style.css from Specific Post template
- How to remove default modules on single event page on Modern Events Calendar
- Show posts from WP Custom Post Type selected from a field in a metabox
- WordPress post not executing shortcode until updated
- How to create a permalink structure with custom taxonomies and custom post types
- Modify the category post counting function
- Permalinks change when edit published post on custom post type
- How to create new permission for custom post types for doing specific tasks
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- Keep custom read more link on the same line as excerpt text
- Edit is changing my custom’s post type parent id
- Custom Post Type
- Hierarchical taxonomy in permalink structure
- Working with gallery shortcode and get gallery images
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Ads below footer
- Rewrite for custom type and custom taxonomy
- Change custom post status to draft before today
- Pagination with Custom Post Type
- Sort custom post type items by taxonomy description
- Show custom post along with default post
- Loop to pull content from parent element in custom post type [duplicate]
- Where do I insert to? [closed]
- WordPress Loop trouble with ACF [closed]
- Load posts via AJAX without draft status