/ Published in: PHP
reference:
http://codex.wordpress.org/Template_Tags/wp_list_categories
http://codex.wordpress.org/Template_Tags/wp_list_categories
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<div class="nav"> <ul> <?php wp_list_categories('title_li='); ?> </ul> </div> <div class="nav"> <ul> <?php $variable = wp_list_categories('echo=0&orderby=name&show_count=1&child_of=1&feed=RSS&title_li='); echo $variable; ?> </ul> </div> <div class="nav"> <ul> <?php $variable = wp_list_categories('echo=0&show_count=1&title_li='); echo $variable; ?> </ul> </div>