Display sub-categories in 2 columns
-
Hi,
Im using below code to display list of subcategories:
<?php if (is_category()) { $this_category = get_category($cat); } if($this_category->category_parent) $this_category = wp_list_categories('orderby=id&title_li=&child_of='.$this_category->category_parent."&echo=0"); else $this_category = wp_list_categories('orderby=id&title_li=&child_of='.$this_category->cat_ID."&echo=0"); if ($this_category) { ?> <?php echo $this_category; ?> <?php } ?>
How can Idisplay list of subcategories in 2 columns, thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display sub-categories in 2 columns’ is closed to new replies.