Need Some Help With Listing Subcategories
-
Is there a way to do exactly what this code does here but have it dynamically pull the child_of value?
Examples
If I’m in the restaurants category or one of its child categories it should always display child categories of restaurants.
Domain.com/category/restaurants/vietnamese/
Domain.com/category/restaurants/<?php wp_list_cats('sort_column=id&optioncount=0&use_desc_for_title=0&child_of=1'); ?>
Trying to avoid making a ton of category templates with the above code.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Need Some Help With Listing Subcategories’ is closed to new replies.