php the_category : child & parent order
-
Hello, I am new here…
on single.php I would like to put the category title above the article title (kind of like a breadcrumb I guess).I am using :
<h1 class="catheader"><?php the_category(' • ' ) ?></h1>
The only problem is this displays the child and then the parent category. I would like to display the child after the parent.
If I use
<?php the_category(' • ', 'multiple' ) ?>
, I get “child, parent, child” (a repetition of the child category in fact).Any thoughts?
- The topic ‘php the_category : child & parent order’ is closed to new replies.