Multi-level Page Hierarchy (3 posts)

  1. admr
    Posted 4 years ago #


    I'm creating an article website and am having a time translating my page hierarchy into WordPress. Here's a small flow image for context:


    The first page you choose a category, followed by a sub-category, finally to the first article of the series. Here's an example of what a breadcrumb might look like:

    Mathematics > Algebra > Variables

    My original thoughts were to have a page using the archive template to show first-level categories > another page with all sub-categories of selected category > the first post inside of that sub-category, but I can't get it working right. Any help is genuinely appreciated.


  2. s_ha_dum
    Posted 4 years ago #

    What have you done? What doesn't work?

  3. admr
    Posted 4 years ago #

    Hey, thanks for replying. I'm using default templates. The easiest way I determined would be to have an archive page with a list of categories such as: <h2>Table of Contents:</h2> <ul> <?php wp_list_categories('depth=1'); ?> </ul>, and then when you click on a category the next page shows you a list of its child/sub-categories instead of linking to all of the posts related to it. I'm not really sure of how else I'd go about it.

Topic Closed

This topic has been closed to new replies.

About this Topic