Nested categories for single.php
-
Hi,
On a development version of a website I have a set of nested categories. On the homepage and archive pages we have a view of the categories that you can click on similar to below:
Category 1
– Sub-category 1.1
– Sub-category 1.2
– Sub-category 1.3
Category 2
– Sub-category 2.1
– Sub-category 2.2
Category 3
– Sub-category 3.1
– Sub-category 3.2
– Sub-category 3.3
– Sub-category 3.4
etc…I want on the single content page (single.php) to just show the chosen categories, but in a similar format, like the below:
Category 1
– Sub-category 1.1
– Sub-category 1.3
Category 2
– None
Category 3
– Sub-category 3.4Is this possible? I’m amazed I’m unable to find something like this somewhere on the web.
The development website is here:
Home: https://doubleagents.webfactional.com/site/
Content page: https://doubleagents.webfactional.com/site/archives/171Many thanks in advance,
Andrew
- The topic ‘Nested categories for single.php’ is closed to new replies.