WordPress Categories Linking to Subcategories

I’m trying to accomplish a three-step page hierarchy in WordPress.
Here’s an example of what a breadcrumb navigation might look like:

Mathematics > Algebra > Variables

Read More

I’ve got a page that lists all of my top-level categories:

<?php wp_list_categories('depth=1'); ?>

What I need next is to make it so when you click a category, it links you to a page that just lists all of its subcategories. By default it takes you to a page with every post in that category.

So you could select say Math on the first page, followed by a page with sub-categories like Arithmetic, Algebra, Geometry, and then when you select your sub-cat it takes you to the posts.

I’m open to using any alternative methods too if you’ve any ideas on a better way to do it. Using the built-in category system just seemed most appropriate.

Related posts

Leave a Reply

1 comment