No Catch-All Category Page (category.php issue)

[ad_1]

Hey guys,

I feel like I’ve been tearing my hair out over something that *has* to be simple and available, I must just be missing something. I’m trying to get my category archive page to list all the posts under the entire “Categories” taxonomy, and it refuses. I’ve tried:

* refreshing permalinks

* switching to default themes

* duplicating archive.php and setting up category.php

I’m still getting a 404 error. Here’s an simple overview of site structure:

“`
Categories
– Food
— Fruit
— Vegetable
– Drink
— Water
— Lemonade
“`

This is for the standard, out of the box category taxonomy. What I want is for the top-level “Categories” to display all of the categories listed. Right now, I can access site.com/category/food or category/drink/lemonade, but /category gives me a 404 error.

This also means that in my menu section, I don’t get a “post archive type” of link.

I suspect that my root WP install doesn’t have categories’ has_archive set, but why? Isn’t that standard out-of-the-box WP behavior? Since I’m using the base category taxonomy here, I’m not sure how I can add has_archive *to* that existing setup.

Plot twist is that it works on my custom taxonomy just fine, but that’s one I built from scratch and included the has_archive.

Any help is greatly appreciated!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer