• Resolved shafee85

    (@shafee85)


    Hi,

    I have created a category called BLOG and when entering into this category, i need to be able to show on the sidebar only the child categories of the parent Category BLOG.

    What code should i insert in the sidebar.php file?

    Currently i have inserted
    <?php wp_list_categories('orderby=id&include=50&title_li='); ?>

    but it only display the parent category there.

    Can anyone please tell me how i could get only the child categories displayed?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to create create child categories and dispay them on the sidebar?’ is closed to new replies.