I had the same issue and your fix helped me a lot.
After I fixed the issue with your solution I figured out that I had used a permalink in one custom post type that caused the issue.
I used years / year and I think because wordpress uses something like this in its archive pages it broke the site.
Probably this helps you also.
Related Posts:
- How to get full content including template HTML
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Changing permalink name redirects to another template?
- Permalink / sub-template issue
- Is it possible to manipulate the list of page templates?
- How can I set up a category “overview” page?
- Custom Post Type with Nested Taxonomy and Template Files
- Templates & CSS – Proper Programming Practice?
- page_template toggle between 2 templates + 2 permalinks for same post
- index.php template is used instead of blog page
- Is it possible to list post attachments in a sub URL endpoint with a dedicated template?
- How to apply a custom template for posts by default?
- Adjust which tempalte a page uses with a function?
- Link to blog index from template
- Is there a wordpress function that I can use to retrieve the current page that is loaded?
- Change author slug and functionality
- For custom templates, is it better to use `template_include` or `type_template`?
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Avoid WordPress categorizing a permalink request as Not found 404 Page
- Get the url of a page template without using the page slug and ID
- WordPress Not Using Template Files After Permalink Update
- Selected template is not respected for home page in WordPress
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Environment independent way to link to certain pages on frontend
- Permalink for specific page name
- implement separate templates for 1 post type
- Single-page.php template file name not shown
- post permalinks with dot in url don’t resolve to correct page template
- How to display custom post type?
- Access or edit custom generated permalinks with WP_Rewrite
- Get Posts Based on Tag Matching Page Title
- optional parameter in permalink structure
- Custom permalink structure for remote content pages
- Organize template parts and page templates in folders in regards of template hierarchy
- How to make different urls for some tags pages
- Multiple URL rewrite rules and get every prams
- How can I make custom page templates work on child theme?
- Single.php not loading when permalink only contains date information
- How to put articles under a /blog directory?
- Rewrite single template permalink?
- “post-name” Renders Using page.php, but “post-name-2” renders with single.php
- single.php being ignored, going straight to attachment.php
- Custom Homepage As Single Page or Custom Post Type?
- How can I get WordPress CPT archives and page templates to work with prettified permalink settings?
- Page Templates Used in Custom Post Type
- Passing query variables to a custom page template
- Pages included in another page and duplicate content issues for SEO
- Select page/template from the permalink url
- Text in permalink
- wp_get_attachment_url not working
- Choose template depending on URL
- Image not Showing (Can see image in inspect element)
- Different template fallback when changing permalinks
- Avada Theme – Display results from a specific category [closed]
- get_permalink wrongfully returns only year and month and not all the link
- All pages lead to home
- Link to most recent child page
- Problem with multiple tags in URL
- Is this the best way to complete disable category archive pages?
- WordPress 4.0 beta – how to change the link URL in RSS feeds
- Development before domain name chosen
- Permalink, links a page to the homepage
- Custom Permalinks and filters?
- Is there a way to remove the option to modify the Slug in post.php
- Folder Name and Category Name WordPress
- Issues with WordPress permalinks
- Automatic -1 suffix being added to the permalinks of a page when the page does not exist
- Most efficient way to have 1 template for parent, 1 template for child categories?
- Loading custom page template on a one page website
- How to display custom taxonomy
- Once redirected by Rewrite rules, how can WordPress know the page?
- Why doesn’t WP update my .htaccess file?
- Custom permalink structure for custom post type results in 404
- Although rewrite engine is on, I get 404 not found on every page
- WP Template Hierarchy – Need help choosing the correct templates
- how to change permalinks from id to name of a particular location
- Pretty Permalink for Search Queries Not Working
- Webdav with permalink in WordPress v3.3.1
- Tag search not working after permalink structure change
- Used wordpress built-in permalink to change post url but the page is not found
- How to remove .html permalink without every post getting 404?
- Find which Permalink structure is the best
- Automatically prepending ‘#’ to slug in child page permalinks
- ReWrite Permalink to New Permalink Nginx
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- Permalinks of archive tag wordpress
- After changing permalink settings, everything works fine except for the two most recent posts
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- Customized author slugs not working with get_author_posts_url method
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- Permalink Issue – Funny & Weird
- Custom WP permalink structure
- Permalink broken for pages after adding rewrite rule
- Installing WordPress in another Install?
- Customize category permalinks
- using post meta data as permalink tags [duplicate]
- How to install a wordpress website template on an existing website?
- How to display post permalinks instead of pages?
- Redirect Pretty Permalinks to Ugly Permalinks