I know this is an old question but I was having the same issue in a theme I inherited and came across this question in my search for answers.
In my particular case, I found the following PHP code included in the theme’s function.php
file:
if( is_category() || is_date() || is_author() ) {
global $wp_query;
$wp_query->set_404(); //set to 404 not found page
}
This code redirects any category, date, or author archive page to a 404 error (which brings up your 404 theme template). You may want to search for something similar in your theme (assuming you haven’t already figured this out).
Related Posts:
- Sort posts by tags in category pages
- Root level category, tag, author and archive pages to work
- How to filter archives both by category and tag?
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- WordPress subcategories return 404 in custom template
- How to Remove a Title from All Category and Tags Page?
- How can I display tags as categories?
- Use blog as base for tags and categories
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- custom browse by
- 404 error when i try to search by category or by tag
- htaccess redirect for all categories converted to tags now showing 404
- Search tag within category
- Is There a Difference Between Taxonomies and Categories?
- What is the difference between a “tag” and a “category”?
- How to get category and archive title?
- Get rid of WordPress category, tag and author archives?
- Custom permalink structure leads to be 404 on pagination
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to get permalinks with category base working with sub-categories
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Category archive by year with permalink support /category/YYYY
- get_categories for custom post type with a specific custom taxonomy attached
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- Control term order on a per-post basis
- get all tags from category
- Force WordPress to Show Pages Instead of Category
- Checklist of selected categories
- Decreasing the Memory Consumption of a WordPress Site?
- What’s the URL for a category archive?
- Rewrite URL with category and tag combined using WP_Rewrite
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Use tag interface for hierarchical taxonomy?
- How to search for categories and/or tags?
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- How to get the category of the post and link it to the archive (of the category)
- Filter categories using tags
- Sticky posts on home page, search, tag and archives without plugin
- How to hide a specific category posts in my monthly archive?
- Optimal way to redirect home page to category archive?
- Display posts links from a category group by year
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Category and tag with same name
- Display list of Sub-Categories and the posts they contain, within one main Category
- Create subdomains for tags and categories
- In the tag archive – display count of posts for each category they belong to
- Is it possible to disable certain user roles from creating tags?
- Automated adding of one tag to all the posts in a category
- Moving Categories submenu to Media, but still opens Posts menu
- Sort category page with custom field
- How to create tabled index of posts in a certain category
- Block multiple categories from Blog
- How would you create a “weekly” archive?
- Exclude most recent posts from specific category in wp_query()
- Sticky Posts Not Sticking to Top of Category Archive
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- How to totally get rid of Category in my blog?
- Showing all the posts in one page?
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Category Specific Archive
- Archive pagination causing 404 with permalinks structure
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- Deleting All tags except categories Wp database
- Is it possible to put tags and category information in the post as text?
- Are Custom Taxonomy Templates Possible?
- “Sticky” posts for each category (archive.php)
- Script to duplicate categories as tags
- Search by word, category, tag, author
- I want exclude the particular category in sidebar
- Remove Categories and Tags from Admin Dashboard
- display most popular tags of category?
- Display only posts from referred category on date archive page
- Get tags specific category
- Using widget logic I want to show only a widget on the archive page if there are no posts
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Can paginate_links() be customized for a specific category or tag?
- New categories are now going to 404s
- Any way to assign Post Categories and Tags to Links?
- Creating archive pages for children categories
- Custom Category/Subcategory structure
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Remove Parent Category from Child Category URL
- Category vs Tag vs Table
- Help with multiple dropdown tags search
- Display “add to cart” button on every listing in product category page?
- Custom WP_Query for current category (in category.php)?
- Hide tag and category boxes from the post editor
- If newest post of category is newest post in general, skip first post of category
- Retrieve all posts within tag OR category?
- How to find the number of Tags a post has?
- Categories not working – 404 Not found error
- How to not treat categories as tags in feeds
- WordPress categories being called “archives” in google links. How to remove?
- Categories: A Greenhorn Question on Strategy (Not Code)
- How to customize tag and category post listings to show introductory content?
- conditional for sub category on archive page
- Sorting posts by season
- weekly archive for custom category