I had the same problem: the template hierarchy is not serving up the right file from the hierarchy (at least it should serve index.php if there is no archive.php), but instead it gives a 404.
My solution is to go to the wp-admin interface, select settings>permalinks and change the common settings to some other permalink setting (I changed it from “post name” to “day and name”). Now try again and it should work. Afterwards you can change the settings back to where they were (in my case: “post name”) and it will still work, no 404.
Related Posts:
- Sizing screenshot.png without losing aspect ratio
- The proper way to include/require PHP files in WordPress
- How to insert a logo in the header?
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Page template in two level deep folder
- Child Theme not loading parent CSS
- Where do I find the functions triggered within a hook?
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- Why use while over if in single wordpress posts?
- WordPress website loads but is not displayed until page scrolled
- Setting a Default ‘Theme Location’ When Creating a Menu
- Theme Customizer not loading
- Is it a good idea to make whole theme widgetized?
- Finding Page Template and Displaying Content
- Single Theme folder for Multiple WordPress
- How i can get widgets areas working in customizer?
- Cutomize Colors utility: How to add more configurable colors to a theme
- Where is definied the theme location for the main menu in a WordPress template?
- How to correctly add JQuery in a WP theme?
- How to disable automatic colors in the Twenty Twenty theme?
- Same theme name issue with wordpress repository theme
- Removing feeds from header using a function?
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- WordPress post arrangement using post_class
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- My Admin bar covers my sticky navbar [closed]
- WordPress theme switcher
- Single Page Design, Storing in Theme Options
- Limitations when modifying wp_title with a filter
- Edit footer via customizer
- WP_bootstrap_Navwalker_issue [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- Migrated WordPress site renders Chinese
- How to Find the Page the Front Page is Using?
- correct tags for validating input types
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to Have a Pure HTML Sub Directory In WP Site
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- WordPress page/blog incorporated into static website
- Random white space before doctype
- How to add menù section to my WordPress template?
- What are the critical theme files when building a custom theme?
- Having issue with WordPress wp_enqueue_style
- Starting point for custom Themes [closed]
- Theme Development -> Specific Homepage
- searchform.php doesn’t work properly
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- How add built-in textarea in theme development?
- Filter didn’t work on content class (hybrid_post_attributes)
- Get video from the post on homepage
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- WordPress Themes Directory: Template which hits the standards?
- Best practice for implementing a blog page / section in wp_menu_nav()
- how to add a badge on product based on filter?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Any way to change/add to the theme name dynamically?
- Let user to upload multiple time
- Why nav_menu_css_class doesn’t work with apply_filters?
- WordPress and Semantic UI
- Text widget is placing everything side by side. I want to post it above
- How to make menus, footer, sidebars multi language
- Different WP Rest API custom endpoints across different themes
- Menu names not getting translated
- register_theme_directory() sees custom themes directory, but blank frontend
- One-Page WordPress Template
- How to create multiple pages in a client theme?
- Using Customizer value in an external PHP file inside a theme
- Fail to install theme on development copy of WordPress on Webmatrix
- How to prevent XSS attack in wordpress theme?
- Featured Image Module Randomly Disappears
- Import from HubSpot COS into WordPress 4?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- Using wp_enqueue_script with social media buttons?
- Getting all months in one year WordPress Archive
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Image Size wrong during upload
- How to create full header but keep content narrow
- Correct way to make a custom block theme responsive
- How do I send out an update for my custom wordpress theme?