Get category name in current category
Hello there. I’m having trouble displaying the category name while browsing a specific category. Let’s say I add a post and give it two categories, for example “Food” and “Music”. Then when I visit the post on my site, I want only one of the categories to be displayed. Displaying only one I know how to do, but it always picks the first alphabetically correct category. Is there a way to control which category I want to display?
Also, if I go to mysite.com/category/food and click on a post there, I want the displayed category to be “food”, but if I click on the same post through /category/music, I want the displayed category to be music instead. Is there a way to work around this or is it not possible?
- The topic ‘Get category name in current category’ is closed to new replies.