WordPress.org

Ready to get started?Download WordPress

Forums

YACQ - Yet Another Category Question (2 posts)

  1. palamedes
    Member
    Posted 7 years ago #

    So I have a category listing like follows;

    catA
    -- subA1
    -- subA2
    -- subA3
    catB
    -- subB1
    catC
    -- subC1

    I only want my sub-categories to show up when you're in the parent category, but I also want the parent categories to show up.

    SO if you're in "catA" the list would look like;

    catA
    -- subA1
    -- subA2
    -- subA3
    catB
    catC

    If you're in "catB" it would look like this;

    catA
    catB
    -- subB1
    catC

    It seems that list_cats "child_of" arg ONLY shows the children of that category.. Is this something that I will easily be able to do wtih list_cats or will I have to do something more detailed?

    Thanks.

  2. Samuel B
    moderator
    Posted 7 years ago #

    Have a look here - perhaps a combo of the 2?
    http://ryowebsite.com/?cat=11
    And have a read here:
    http://ryowebsite.com/?p=46

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags