How to get post categories from a certain top category?
-
Hi,
I have the following hirarchy:
Category 1
Category 1.1
Category 1.2
Category 2
Category 2.1
Category 2.2
What’s the method to get all of the subcategories of category 1 (e.g. Category 1.1 and Category 1.2) when I know the post ID (outside the loop).
Thanks 🙂P.S.
I figured it’s supposed to be something with wp_get_post_categories, but I couldn’t find any reference to using the args for such a thing.
- The topic ‘How to get post categories from a certain top category?’ is closed to new replies.