Phew after an extremely lengthy investigation I have been able to
identify that this is direclty related to the fact I had a custom
taxonomy called “year”. Year is already used by wordpress in the
permalinks and this was causing all the problems.I have now had to rename my custom taxonomy. So it is no longer year.
- I found a solution after a bit of searching around.
- This answer should be credited to wordpress.org member nicole2292
Related Posts:
- What are the differences between custom post type and custom page templates?
- Setting a custom sub-path for blog without using pages?
- Loading custom page template via plugin
- Ordering Posts List By Taxonomy Terms?
- Creating a Custom Post Type for Inserting Preset Content into Post & Pages?
- WordPress keeps fetching the archive page instead of the template page
- How to add custom template in plugin?
- How to quickly switch custom post type singular template?
- Add a Template to a custom post type
- How to use a dedicated template for the Custom Post Type from a plugin?
- WordPress calls archive page instead of Custom Page Template
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- Custom post type archive and single.php files not working
- Pagination on a custom page template
- WordPress custom post type Single.php?
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Control Custom Post Type template from a plugin
- Detect if 1st, 2nd or 3rd level custom page?
- Create second custom 404 page for selected post type
- is_page_template not working as expected
- Child page in custom post throws 404 page not found
- CPT: archive-cpt.php VS custom page template
- Multiple portfolios with one custom post type?
- Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template
- Including Custom Post Type posts in a page template contextually (or should I widget?)
- Custom Blog Post Listing in Genesis Sample Child Theme
- Pull in custom content types into page template
- Editable content on a Custom Archive page
- Can I make WordPress use a custom template for a child page
- Create Template for Custom Post Type same like for Page
- Creating a Page to View the List of Posts for a Custom Post Type?
- How to load a template without it being assigned to a page/post?
- Custom template with CPT doesn’t display on frontend
- Custom Page that comes with preloaded content for the user
- Custom Post Type with Templates using Meta Boxes?
- Posts are duplicating on wp_post_update
- Custom-Posttype & Custom Taxonomy WP_Query
- Page template with different page and post content
- Custom page sidebar using Template dropdown box
- redirect automatic page that serves custom posttype content
- Adding sidebar to template creates horizontal gap the size of the side bar
- How to render a custom post type template with custom fields using shortcode
- Show Custom Post Type meta boxes only on Page Edit
- Creating a Page Template to display all items from a Custom Post Type
- Filter widget outputs
- Why does my content disapear when I make a page to match an archive name?
- Custom Post Type Template Alternative
- General advice on addressing content-centric pages
- Fields for different parts of a page
- next_/previous_post_link() `in_same_category` appears to fail when true
- How can I set the page template of a new custom post type post?
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- Include php on a specific page template
- get comments by current user inside page template
- Page Template Dropdown For Custom Post Types
- providing access to post_id or post inside functions.php
- Dynamic assign a custom template to custom post type posts
- How to get the current category with custom posts
- How to add page under a custom post type?
- Enabling permalinks disables custom page template
- Custom Post Type Specific Post Template
- Custom Post Type Template Insert not working properply
- Loop and add Specific Categories and Products Images
- custom post template ignored after altering permalinks
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Display ONE taxonomy and its assigned pages
- Display custom post type from template
- How To Display Posts Of Custom Post Type At Page Template
- Modify Custom Post Type Slug
- How do I find out which (page) template file my custom child post is looking for?
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- Custom post type not pulling CSS
- How can I use one instance of page.php to display different custom post types?
- Showing Custom Post Type with his templates on a custom page template
- Displaying posts inside table having issues
- How to display a custom post as a page (but unedited)?
- Custom post type , page template not grabbing the page template
- Show index and not the archive for “Dog Custom Post” with default slug
- Can not hook into custom post type template with: is_page() conditional?
- custom fields not showing before get_header
- Page Template For Custom Post Type doesn’t work on URL containing CPT name, other URL’s work
- custom post type archive slug vs. custom page template
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- How to create a custom template for this custom post type?
- Templates list in “Page Attributes” metabox is inaccurate
- Query custom post type and showing its content
- How to divide posts (custom post type) content on multiple pages?
- Modifying and Displaying URL’s in a Post Template using parse_url
- Display Custom Taxonomy of custom post type
- Multiple search template with separate stylesheets
- Dynamically change Custom Post Type Template OR Change Permalink?
- Page template anomaly
- Page templates for custom post types
- Adding custom theme template to custom post type [duplicate]
- Can you programme the selected page template to display block patterns automatically?
- I want to show a list of posts under specified categories
- Multiple search forms and respective results page templates?