404 Error On Category and Tags Pages


Okay So I’m facing a weird problem as i’m receiving 404 errors on blog category and tag pages.
I’m using custom theme which includes:

  • tag.php
  • category.php
  • archive.php
  • home.php
  • index.php and
  • 404.php.

The Blog archive is working fine but when i try to load tag pages or category pages i’m being redirected to 404.php template file.

Also there is one other weird problem which i’m facing if i remove 404.php file from my theme folder the category and tag links are working fine and loads content from archive.php but it shows page not found on page title and error404 class is added inside the body tag of that page.

Here is the list of items that i’ve tried so far to solve the issue:

  1. Refreshed Permalink Structure.
  2. Applied Category and Tag Base.
  3. Changing the theme to twentyseventeen in which everything was fine
  4. All the code in my header and footer.php file follows wordpress theme guidelines.

Please suggest me a solution that might help to solve this as it works fine without 404.php. The Blogs and Categories on website are imported from other website using WordPress importer.

Question Update: Why Does WordPress redirects to 404.php even tough files category.php, archive.php and index.php are present inside WordPress theme folder on category or tag pages ??

, , , , Vatsh Patel 6 years 2018-02-02T00:41:37-05:00 0 Answers 77 views 0

Leave an answer