Results 1 to 1 of 1
Feb 3, 2010, 10:15 #1
- Join Date
- Jan 2010
- 0 Post(s)
- 0 Thread(s)
query on showing up wordpress categories and subcategories?
I am working on classified website powered by wordpress.
I want to put all categories and subcategories on index.php as you see it on quickr dot com.
thought i could do it in two ways but it has some issues:
<?php wp_list_categories('show_count=0&hide_empty=0&exclude=1&orderby=name&order=asc&title_li=&child_of=' ');?>
though i got the list, but I dont know how to present it well.
<li><?php $cat = 15; $thisCategory = get_category(15); $catName = $thisCategory->cat_name; echo $catName;?></li>
With this method i can show results based on Category ID.
Is there a way where i can pull all categories and subcategories and frame it in tables.