Quote:
Originally Posted by tonyparra
sorry i was tired when i made thread...the wp_list_categories prints your category list heres a snippet of code from the default wordpress theme sidebar:
Code:
<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
that will print a list in alphabetical order with child categories, and post count. An example of what i currently have can be found in the default wp theme, an example of what i would like my list to look like can be found here:
http://www.hotmovies.com/categories.php
The parent cats are bold and using the <h3> tag, therefore helping to show the difference between parent and child cats. Is that possible in wordpress?
|
yes, I know you used that hook, I just shown you the output. So here you have since your code is outputting something different to what it should be (not your fault, probably a change in WP, you're using the correct function as documented):
Code:
<?php $sub_cat = wp_list_categories('echo=0&orderby=name&title_li=&hierarchical=0&child_of='.$category->cat_ID); ?>
<ul class="subcat"><?php echo $sub_categories; ?></ul>
<?php } ?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
|