using get_category_parents for single category links
-
For a way to put a link to specific categories in the sidebar, I’m using
<?php echo(get_category_parents(1,TRUE,'')); ?>
which works great since none of the categories are nested.
Previously, I was hard coding them.
This is the only tag referenced in the codex that does what I wanted.
Is this the best way to do this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘using get_category_parents for single category links’ is closed to new replies.