Last category name
-
Hey,
I need some help with the retrieving categories, I have allot of sub cats, and when I print out what category the post in is like cat 1, cat2 , cat 3 and so on, how can I print only the last sub category that contains the post? lets say theres 4 sub categories
-cat
–cat 1
— cat 2
—-cat 3
—— The postHow can I print only the cat 3 as with
<div class="s-title"><b><?php the_category(', ') ?></b></div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Last category name’ is closed to new replies.