Children of Current Category
I’m wanting to edit the category.php page to show the children of the current category.
For instance, Domestic > Fruit > Apple, Orange, Pineapple
When you are on the Fruit category page, I’d like for it to just list the subcategories of it.
Here’s the code from the codex, but from what I see you have to specify what category to show the children from.
<ul> <?php wp_list_categories('orderby=id&show_count=1 &use_desc_for_title=0&child_of=8'); ?> </ul>
Is this possible?
- The topic ‘Children of Current Category’ is closed to new replies.