How can I get a category list with sub-categories?
-
Hello,
I’m trying to obtain a list of my categories, with all the subcategories, but I don’t understand how to do it…
Are nested “for each” possible?
Or should I use “pass”? (if so, how? I don’t understand how it works)
I can get the subcategories using “parent” inside and each, but I have to manually write the parent name… I would like a loop to retrieve all the parents and then loop on each of them to retrieve their children.
Is it possible?
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘How can I get a category list with sub-categories?’ is closed to new replies.