Since changing your theme makes everything come back to normal, then, basically, it means the problem is from the theme you wish to use.
It looks like the theme is missing templates that should show up upon returning ‘no results’ for your query, or, there are errors in the template(s) supposed to display.
This scenario should show a ‘no results’ template and not really a 404 page.
Related Posts:
- WordPress Migration: Getting 404 Errors: Only Home Page works
- External page integrated into WordPress returns a 404 error
- WordPress Theme’s 404.php not found, server defaults to Apache’s own 404 page
- 404 when fetching image from wp-content/uploads/
- REST API: No route was found matching the URL and request method
- WordPress REST API 404
- Changing Site Address (URL) causes 404
- Detect 404 before headers are sent
- In wordpress I am manipulation 404 response. I want to give the response before 404 error is given to google
- 404 error on homepage when using Nginx proxying to Apache
- Non “WordPress” pages/code getting 404 error
- Where is the best part to hijack or catch a potential 404
- page not found in Chrome, but found in Firefox
- High CPU usage on 404 errors
- How to fix “failed to set referrer policy: The value ‘ ‘ is not one of…”?
- 404 to 301 – Fixing old links
- How do I bypass WordPress 404 handling?
- $error = 404 after caught add_rewrite_rule
- WordPress Stats keeps showing non-existent post as a top post?
- WP Rest API not working
- Why is my Javascript console showing a 404 error for a file called “null” on a clean WordPress install?
- Non-existent page returns code 200
- WP is redirecting instead of going to 404
- Conditional for 404 page not work
- post parameter ‘name’ 404 error
- Intermittently missing pages and posts in WordPress
- oEmbed 404 errors when trying to use embed block
- 404 after moving localhost wp to server
- Intermittent 404 errors, rewrite rules, and BBPress
- WordPress Post – On Post – 404 Page Not Found
- How to find out which function is causing a 404
- Prevent WordPress from interpreting a subfolder?
- Getting 404s on New Pages
- index2.php in root causing 404 error
- Custom 404 page for dashboard
- WordPress.org support topics returning 404 [closed]
- How can I prevent non-existing wordpress pages from getting redirected to home page
- Getting 404 error on my wp rewrite error
- redirect deleted / drafted pages
- 404 error on dynamic stylesheet creation
- How to fix: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”
- WordPress refuses to read the .htaccess file and gives a 404 for sub-pages
- How to recover WordPress Adress(URL)
- URL Change – Check if Post Exists Before 404
- WPML – 404 Error when I try to pass GET parameters in my “different languages in directories” installation
- How to use wp_footer() on a 404 page?
- Sub Domain’s Pages return 404
- Is the 404 page the same as “well this is embarrasing” page?
- Google 404 Errors
- WordPress Installation in Subfolder only works half
- Page not found if mod_cache_disk is active
- Why aren’t links clickable on my 404 error page? [closed]
- Blank TinyMCE and 404 errors on assets
- How do I redirect a permalink for a Draft post to a custom 404 page?
- No 404 page available
- New install of wordpress, my url goes to index of/
- Page not found when trying to link to files in child theme directory
- Can’t view post, goes to 404 page. Please help
- Custom Post Types cause 404 for pages? [closed]
- How to fix 404 page error on theme
- How can stop redirects 404 in wordpress
- why I get a lot of 404 not found links via Google search console and how to fix them?
- Page not found after migration to localhost. I already updated the sql links and the permalinks. Wp-admin page works perfectly
- 404 error on new pages but only for non logged in users?
- Unable to change 404
- Redirect search.php to 404.php
- WordPress Admin page Error 404
- Problem with a wordpress admin system. and website
- WordPress Inner pages giving 404 Error after shifted to new server
- 404s after changing site url in settings
- Page 404 Error on Localhost
- Why my post showing not found in admin side when i click on count of category?
- “Headers already sent” error triggered in “parse_query” action
- Manage 404 page over wordpress backend?
- 404 Page not found error after adding ‘s’ in ‘http’ in Settings
- 404 Errors on Every Page (Including Homepage) After Migrating From IIS to Apache
- All files being pulled from wp-content returning 404 error
- Homepage URL showing a 404 error
- What could be the reason that i can’t access to the other pages of my localhost wordpress website except the homepage?
- Random 404 on any page
- Exclude from wp_list_pages by template
- Intermittent Rewrite Problems
- How to get redirection to not redirect to 404 page?
- Getting 404 pages when upgrading from 3.5.2 to 4.1.1
- Local copy of site returns 404 for all content outside of core .php templates
- My website not showing 404 error!
- Install wordpress as a development site in a subdirectory on live server
- 404 errors in log showing urls with ‘GET’, plus and numerical code
- WordPress not showing custom 404 page for not found images, zip files
- Override private status – Enable users to read private posts
- Posting to most pages throws 404
- $_POST[‘message’] gives a 404 [duplicate]
- 404 Not Found nginx on wp-admin
- Author page not found
- except home page , all the links throwing an error “404 Pages Cannot be found” [closed]
- Can you redirect a 404 to a WordPress page and still show response code 404?
- Getting 404 when static files have “?ver=x.y” suffix
- Unidentified 404 error [closed]
- How to include a php file in 404.php file?
- How to navigate to a non-wordpress page in a wordpress install without getting a 404 error?