WordPress.org

Forums

Displaying Categories with specific parents (2 posts)

  1. adeking
    Member
    Posted 8 years ago #

    Hi,

    I am wanting to to display in another location on my sidebar, categories that have a specific parent. For example all categories that are assigned to the "2006-2007" category.

    How do I specify this? I got this far, but it doesnt work...

    Any help >

    <?php 
    
          if (function_exists('wp_list_categories'))
            wp_list_categories('title_li=&show_count=1&child_of="2006-7');
          else
            wp_list_cats('optioncount=1');
        ?>
  2. tsguitar
    Member
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic