Support » Fixing WordPress » Displaying Subcatgoery Hierarchy

  • Hello,

    I’m starting up a pop music blog and I wanted to have a menu for people to easily find their favorite artists via alphabetical separation. As such, I created 26 categories (A-Z) and then began creating subcategories within each letter category for various artists (such as “Taylor Swift” within “T”) *Not trying to be patronizing, just clear.*

    For some reason I was under the impression that navigating to the “A” category page would display all of the “A” subcategory pages, when in fact it just displays all of the posts within any of the subcategories. So, what I’m trying to figure out is how to make a page (or something, I suppose) that would display all of the subcategories within each letter category to allow people to find these artists.

    I do have a search box and such, but I’ve seen similar effects with this “artist hierarchy” on many other music websites, so I’m sure there has to be some way to accomplish it. I’m just unsure how to do it myself!

    Any ideas? Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Most themes do not support categories for Pages – can you clarify please?

    I want there to be some sort of file (like a page or template or something, I don’t know what to call it because I don’t know what it could be) that would display all of the subcategories of a parent category.

    As in an “A” page that would list all of the “A” subcategories (Adele, Azealia Banks, Avril Lavigne, etc.) You would essentially navigate to that page, select an artist (which in this case would be a subcategory), and then it would display all of the posts within that subcategory.

    Hopefully that makes more sense?

    For example:

    When you hover over “artists,” the alphabet comes up and then clicking on a letter takes you to a page displaying all of the artists of that letter.

    While I don’t think that site is run by wordpress, surely wordpress is capable of creating something similar to that. It doesn’t necessarily need to be styled as such, just function like that.

    If you meant use java to create a menu similar to the one linked, that would certainly work, but that’s not the issue I’m trying to solve.

    I’m trying to figure out how to have a “page” where all of the children of category “A” are displayed. That’s how that set up functions and that’s what I can’t figure out.

    I mean I could make a bunch of static pages and manually link them to the appropriate subcategories, but that could become a nightmare as I add more and more artists (or subcategories.) I’m wanting some sort of fluid “page” that will display the children of the parent category the user is currently viewing so that when new subcategories are added, I wont have to to back in and edit a static page.

    If you meant I can do that using javascript, how exactly would I go about it?

    I’m basically looking for the same thing for a photo/video blog. Check out this forum post. Hope this help

    Moderator keesiemeijer


    Look at wp_list_categories and the child_of parameter to show only links from the parent category on a category template file (category.php or archive.php):

    $current_cat = get_query_var('cat');
    wp_list_categories('child_of=' . $current_cat);

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Displaying Subcatgoery Hierarchy’ is closed to new replies.