Getting a list of categories

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.

<div class="widget">
	<h4 class="widgettitle">Categories</h4>
	<div class="widget-content">
			<?php wp_list_categories('child_of=6&orderby=name&title_li='); ?>

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

IMPORTANT! To be able to proceed, you need to solve the following simple math (so I know that you are a human) :-)

What is 9 + 13 ?
Please leave these two fields as-is: