Turned out to be interference from another Flatpack hack I had in place to stop it displaying child CPTs when outputting its widgets.
For reference, the damage was being done by a pre_get_posts
hook. Worth checking this if you’re similarly stuck.
Related Posts:
- Pagination in custom loop for custom post type throwing 404 error
- Custom post type single page returns 404 error
- Getting hierarchical custom post type permalinks to work just like pages
- How to use a custom post type as front page?
- Custom Post Types 404 Issue
- Custom post type archive 404’s with paginate_links
- Single custom post type page redirecting to 404 page
- How to disable a Custom Post Type Feed?
- Custom Post Type Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Custom Search | Wrong output & question
- Get the most popular terms for a custom post type
- Query by 2 values of a repeater ACF field
- show posts only on homepage but using custom post type and taxonomy for query posts via url
- Comparing timestamps in meta query doesn’t work
- Custom Taxonomy archive returns 404
- Include both default and Custom Post Type in query modified inside pre_get_posts
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Include different loop templates in search query
- Pagination with custom post types results in 404 issues
- Automatically adding meta data to posts or multiple query help
- Custom Post Type order by modified date and custom meta field issue
- custom post type and custom taxonomy url conflict
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Selecting New & Edit Page for Custom Post Types
- Querying Term Posts in Loop
- An empty Custom Post Type Archive page returns 404 in WP 3.1
- Custom taxonomy in URL showing 404
- Custom Post Type Draft Preview Goes to 404
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- Meta query for custom post type ignored in main query
- Querying Two Custom Post Types with OR Not Working
- How do I move/order posts with a tag to the end?
- Custom post URL 404 error
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Set a CPT slug as a base name for all the taxonomies
- WordPress randomly shows 404 errors
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Custom post type permalink tag 404
- Custom post type / taxonomy rewrite archive page 2 gives 404
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Hierarchical permalinks for custom post type and taxonomy
- Custom post type pagination 404
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Query multiple taxonomies with pre get posts
- Query Custom Post Types with checkboxes
- show all custom posts types in home page
- List of child custom post types lists all custom post types
- page not found for single-type.php file
- Make (custom) post type accessible only by custom query
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- Custom Query: If One Post Object Field Value Is The Same As Another
- How to filter a custom post type by custom taxonomy without 404
- Custom Post Type not showing in main loop
- Post type Permalink
- Hide text if query has no posts
- How do I get the index for a custom post?
- Create query for both custom post type and category
- Filtering custom posts by custom fields (ACF) [closed]
- Custom taxonomy query showing more than 4 posts
- Query Custom Post by taxonomy multiple categories
- Custom Post type showing up in loop, regular posts are not showing up
- Permalinks not working (404) for the ‘item’ post type
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- How to divide Subcategories into pages of parent category wordpress
- WP Query: If field X is empty, show posts based on field Y
- Shortcode with loop stacks output
- Displaying all posts by category and showing content on click
- Show custom post status when logged out
- Custom post type order by post_title
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Custom Post Type slug and WPML gets 404 error
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- 404 error next-page [2] PageNavi custom type taxonomy
- Get posts of an specific term of a custom taxonomy
- Conditional posts in WP_query for search
- Display year value before a set of posts
- Help ordering custom query by Title, Ascending
- How to add parameters for custom post type
- Is it possible to add query parameters on the archive page?
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Multiple Queries and Loops within CPT Archive
- how to limit query_post to first page?
- Submiting custom form give error 404
- Pagination not working with custom loop
- Post content stays the same but permalink changes ?
- Pagination not working with custom loop
- Retrieve post data via WPDB class
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- How do I paginate a custom post type listing on a custom template page?
- custom post-type query just returns two posts
- Order custom post type is beign ignored