In this example a category list can be requested by calling wp_list_categories
. A query string is passed to the function to specify categories that are children of the category ID 6. Additionally an order
variable will sort the results by category name.
1 2 3 4 5 6 7 8 |
<div class="widget"> <h4 class="widgettitle">Categories</h4> <div class="widget-content"> <ul> <?php wp_list_categories('child_of=6&orderby=name&title_li='); ?> </ul> </div> </div> |