WordPress.org

Support

Support » How-To and Troubleshooting » Children Category list with conditional

Children Category list with conditional

  • 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?

  • The topic ‘Children Category list with conditional’ is closed to new replies.