Forums

[resolved] Poblem Displaying child categories menu (1 post)

  1. logicstar
    Member
    Posted 2 years ago #

    Hello..

    i have problem with displaying subcategories/ child categories.
    i use this code :

    on my sidebar :

    <?php
    if (is_category()) {
    $this_category = get_category($cat);
    if (get_category_children($this_category->cat_ID) != "") {
    wp_list_categories('orderby=id&show_count=0&title_li=
    &use_desc_for_title=1&child_of='.$this_category->cat_ID);
    }
    }

    ?>

    that code work fine if there's categories have subcategories.
    but the problem is
    when i click those child categories.and goes to the category page. then the child categories menu is missing. i want it stays there.
    basicly when i click the subcategories menu. that those link will stay not disappear.

    anyone can help me please

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags