Listing only top categories
-
How does one use to list only the top categories ? I don’t want any of the children:
$categories= get_categories(‘child_of=0’);
I can’t find a parameter that will tell get_categories to only list the root categories (those that have a parent of 0) and none of their children.
Help ?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Listing only top categories’ is closed to new replies.