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?
- The topic ‘How to show parent category names?’ is closed to new replies.