How do I ‘linkify’ this function?
-
This piece of code displays the category as text… but I’d like it to display as a link to that category… any help would be greatly appreciated. Thanks. Pete xxx
<?php foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(40, $childcat)) { echo $childcat->cat_name; }} ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do I ‘linkify’ this function?’ is closed to new replies.