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:
- How to add CSS class to custom logo?
- theme path in javascript file
- The proper way to include/require PHP files in WordPress
- How to insert a logo in the header?
- Why doesn’t default WordPress page view use force_balance_tags?
- Theme Customizer : how to create multiple-level panel
- Automatic Updates For Private And Commercial Themes?
- What can I hook into after_setup_theme?
- Grab the first paragraph of each post
- add_image_size is scaling, even though crop is set to true
- “Cheatin’ uh?” error message on multple theme directories
- Adding WordPress colorpicker in widget settings
- How to use bloginfo( ‘template_directory’ ) in array
- Should I update my _s theme?
- Setting a Default ‘Theme Location’ When Creating a Menu
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- How to set page template on front using starter content?
- Different Admin Theme – Based on Role?
- Finding Page Template and Displaying Content
- Override Constants in Child theme
- How to correctly add JQuery in a WP theme?
- How do I remove twentyten without ruining what I did?
- Custom theme not visible in Appearance
- how to change a theme slug
- Same theme name issue with wordpress repository theme
- Removing feeds from header using a function?
- I want to get the home root path
- How to add code in the content area in a WordPress theme?
- How to add theme support?
- Translation Issue with WordPress Theme Check in comment_form function
- Developing WordPress Theme using CSS framework like Bootstrap
- WP_Customize_Color_Control omitting # symbol
- Using esc_url with a hard coded url
- Broken template went invisible
- WordPress theme switcher
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- WP_bootstrap_Navwalker_issue [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- Theme Inspector “X-Ray”
- Acivate all themes multisite wide automatically
- How to set a page as homepage in stead of the newspages?
- how to get the post attachement image in full size?
- Widget Option is Missing
- Best way to develop a new theme on a live site, with new content? [closed]
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- WordPress Theme Validator?
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Set a featured image as a replacement to the header image
- Custom theme: How to call archive-post.php for viewing blog posts
- html5-reset theme does not show the image [closed]
- Theme Customizer not displaying saved values in wp_head (CSS)
- How can I hard code my sidebar?
- What exactly is “wordpress theming”? [closed]
- Thesis -style Navigation
- How can I wrap all blog posts image with
- Issue when posting updates/changes to wordress
- Valid SQL query not returning results
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Create theme for mobile phones and tablets only?
- Never actually adding the action? Or do I have to call the action?
- How to hide custom sidebar on mobile
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- What is the difference between Twenty eleven & roots framework?
- iPad WordPress theme?
- List categories of a post hierarchically?
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- How to change listing type permlink?
- Adding popup support to the theme
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- Is it possible to echo a woocommerce prouct attribute discription?
- Child theme menu not appearing in Twenty Seventeen
- How do I remove header/page-title image in farvis theme? [closed]
- How to link post image to post link?
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- On wordpress, how do i require specific dimensions from user uploads only
- WordPress Theme Developments – Start from another theme
- Slider should be display in home template [closed]
- Modify comments_popup_link output
- Next post in category
- Can you create a custom page with content in the center already defined?
- How to migrate the menu from the site on my own theme in WordPress?
- Trouble creating custom sanitization function when uploading video files
- RSS feed url showing page not found. How to solve it?
- How to convert that page to a wordpress template? [closed]
- Toolbox theme using printif statement – help needed understanding code block
- php file child theme directory not overriding parent theme php file [duplicate]
- How to Create a Multi Purpose Theme?
- Custom Single Page Portfolio Theme [closed]
- How do I send out an update for my custom wordpress theme?
- How to add multiple custom blocks in custom WordPress theme using create-block?