check if single post belongs to certain category … if true – add related posts
my problem is very simple, I can’t seem to get the category name of a post in a single string format.
There’s the_category() function which returns a list of all the categories as links. Now what I need is the category of the post as plain text (no link). The posts will always belong to exactly ONE category.
- The topic ‘check if single post belongs to certain category … if true – add related posts’ is closed to new replies.