Show only Sub Categories in a Category? not posts? Display Children only?
-
Hi,
I’m trying to display only my sub categories once a category has been clicked, so I would like sub categories displayed and if no sub category is present then the posts will be displayed?
Easier with an example:
Category = Destinations
Sub Level One = Africa | Europe
Sub Level Two (Europe) = Poland | France ***or*** Sub Level Two (Africa) = Namibia | Botswana | Egypt
Can anyone point me in the right direction on how I achieve this? Basically I want to create a series of steps… so user clicks:
Destinations they then have the option of category headings Europe Africa etc and then when they make a choice of Africa they are left with a choice of Egypt Namibia Botswana etc. After selecting the country they will have list of the posts associated/posted in that country.
Can anyone let me know how I achieve this? at present all posts are displayed once you click destinations. It’s not the posts but the categories that I want listed at this stage.
Any help is greatly appreciated.
Thanks.
- The topic ‘Show only Sub Categories in a Category? not posts? Display Children only?’ is closed to new replies.