Support » Themes and Templates » single post show message according to category tht post is in

  • In single.php i need to have some conditionals that ask what category the post is in so i can display a message, not sure how to do this, but this is the idea:

    if post in category ‘2’ say “hello dude
    elseif in category ‘3’ say “proper bo”
    or else “nothing to say”

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘single post show message according to category tht post is in’ is closed to new replies.