Hi, I know you can call wp_title() to display post title, but can I display category in the post title? I was playing around with single_cat_title(), but no luck. Anyone knows? Thank you.
Ok, I understand why single_cat_title() doesn't work. Because a post can belongs to one or more categories( I guess). So, here is my solution: I made a function in the Header.php: function first_cat_title() { $cats = get_the_category(); $firstCat = $cats[0]->cat_name; echo $firstCat; } So it will always display the first category name =)