WordPress.org

Forums

Children Category list with conditional (1 post)

  1. jumust
    Member
    Posted 3 years ago #

    Hi,
    I have parents and one sub-category level
    in my category page I want to use in the sidebar a list of categories that works like:

    - If I'm in the parent category page I want to show a list of ALL ITS CHILDREN

    - If I'm in the child category page I want to show a list of ALL OTHER CHILDREN OF THE SAME PARENT

    Is it something easy to do?

    I'm assuming I should add a conditional but I don't know how to build the code, anyone who knows?

Topic Closed

This topic has been closed to new replies.

About this Topic