Ho hum after a bit of digging I found this
<ul>
<?php
wp_list_categories("orderby=name&show_count=1&chil d_of=$cat"); ?>
</ul>
apparently $cat is a variable passed by the currently selected categroy
Roll on Bank holiday!!
Yeah, I know I should really be posting this in the techies corner but I reckon most of you are pottering about in here anyway!
OK so I'm setting up a new Wordpress based site and I'm having some trouble with some custom code in the category.php template.
What I want to do is display a list(links) of the child categories within the selected top level category. So by way of example I click on the FRUIT top level category link then I get a page with BANANAS, APPLES and PEARS which in turn link to a list of posts within that sub-category, as per a 'standard' wordpress category page.
I've tried various ways including wp-list-categories but without much success... anyone feeling helpful?:tup
Ho hum after a bit of digging I found this
<ul>
<?php
wp_list_categories("orderby=name&show_count=1&chil d_of=$cat"); ?>
</ul>
apparently $cat is a variable passed by the currently selected categroy
Roll on Bank holiday!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks