How to show parent category names?
-
I’m trying to print out the parent category with links of a sub category so it looks like this:
Parent 1 >> Sub 1
In the Codex I found this:
<?php echo(get_category_parents($cat, TRUE, ' » ')); ?>
However it is not printing anything–just blank.
What code should I use to mark this up in PHP?
Tks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to show parent category names?’ is closed to new replies.