How do I tell if a category is a parent?
-
Is there a function hidden away somewhere, like is_parent() or has_parent()? I need to find a way to distinguish between parents and children in an if statement, so I figure the best way is to select only categories that have no parent. Any ideas?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How do I tell if a category is a parent?’ is closed to new replies.