Categories and sub-categories displaying in sidebar
-
Would someone be able to help me out with some coding advice, at the moment I retrieve my categories with the following code:
<h2><?php _e(‘Categories’); ?></h2>
<?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); }?>This displays all my categories in one list but since I have some sub-categories and I would like these to be shown as sub-categories in my sidebar.
How do I go about this?
Many thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Categories and sub-categories displaying in sidebar’ is closed to new replies.