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
- Pagination not working with custom loop
- Custom post type single page returns 404 error
- Getting hierarchical custom post type permalinks to work just like pages
- Get the ID of the latest post
- Custom post type pagination 404 fix?
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Custom post type 404s with rewriting even after resetting permalinks
- Sort custom post type list table by display name of a user id stored as post meta value
- How to use a custom post type as front page?
- Custom Post Types 404 Issue
- Random post, once per day
- Custom post type archive 404’s with paginate_links
- get attachments for all posts of particular post type
- Pagination throws 404 error on custom taxonomy archive pages
- 404 on child page when parent page slug is identical to custom post type
- Query custom post type by custom field
- Single custom post type page redirecting to 404 page
- Add Custom Post Type to Current Query
- Hierachical Custom post types permalinks not working
- How to disable a Custom Post Type Feed?
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Child pages on hierarchical Custom Post Types 404s
- Custom Post Type Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- Pagination throws 404
- SQL to update custom post taxonomies
- How do I redirect all 404 errors of a specific post type to another URL?
- Query multiple taxonomy in Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- WordPress monthly archive links result in 404
- Remove Slug from Custom Post Type results in 404
- Querying Posts by Taxonomy From Alternate Network Site
- How to remove CPT comment feed from head?
- 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
- Display two post types ordered by two custom fields
- Custom Taxonomy archive returns 404
- WP insert post PHP function dynamically generated Custom Fields
- Pagination gives 404 error
- Include both default and Custom Post Type in query modified inside pre_get_posts
- meta query always fails even if data is correct
- How do I get a nested query to only display content that the main query outputed
- $post breaking container loop
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- Pages displays correctly but returning a 404 error in http header.
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Multiple Queries and Loops within CPT Archive
- Query child posts on parents single.php?
- Query Posts From Multiple Post Types
- Pagination not working with custom loop
- how to limit query_post to first page?
- Filter CPT based on meta box value using Flexible Posts widget?
- WordPress can only query up to 766
- Submiting custom form give error 404
- How would I get a list of posts from a custom post type
- Pagination not working with custom loop
- 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
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Listing custom post type items from a couple of custom taxonomies
- 404 with Custom Post Type
- Pagination not working with custom loop
- How do I paginate a custom post type listing on a custom template page?
- Show custom posts with a specific “custom TAXONOMY slug” on startpage
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Allow admin to determine the order of queries?
- WordPress search results
- WordPress custom post type post and category links 404
- Posts 2 Posts: query connected — orderby problem
- Code in custom widget queries all posts, when it should only query the current post
- custom post-type query just returns two posts
- Order custom post type is beign ignored
- How to add post type in masonry posts elementory widget
- Filter Custom post type by another Custom post type
- Create a list of months based posts
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- WordPress Admin Page Slow. Customer Post Type is the slowest
- Add a class to a menu item depending on a body class
- Get Posts ordered by a date custom meta field
- Pagination on category pages using wp_pagenavi causes 404 errors
- Custom Post Type, 404 error
- How to debug a 404 error on pages whose content is perfectly displayed when I explore it?
- Display all child posts in a custom post type, grouped by a custom taxonomy site
- Load posts via AJAX without draft status
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method
- Single custom post type page redirect to 404 page
- How can I show a field ID in Elementor with Request Parameter
- Custom post type single page fine for admin, 404 from front
- Custom Post Types, Single Posts returning 404 Errors – flushing permalinks does not correct
- Custom post type category pages pagination returns 404
- Query Multiple Post Types and Paginate Newly Created List
- Cannot create custom post types with a specific name
- Custom Post Type – archive working – single is not