codehaven - php snippets - coding help
Generic filters
Exact matches only

Get child/parent categorys from category number

29th August 2013

Wordpress - Get

wordpress category

This code without echo, will show all categories in variable that holds ‘9’ as the id number.
Note: Will only show category with posts. (make a test one to show it).

Get child of

Get parent of

Was this code snippet helpful?