Topic tag conditional for specific word
-
How do we do a basic conditional for a specific term from our list of topic tags?
I’ve tried all these different methods but not worked it out (annoyingly I have had this working before but don’t have access to my old files and cannot remember how I did it! D’oh!)
has_term
has_term( ‘myterm’, ‘topic_tag’ )
has_term( ‘myterm’, ‘bbp_topic_tag’ )
bbp_is_topic_tag
get_topic_tag_list($topic->ID, ‘topic_tag’, true)
get_post_meta($topic->ID, ‘topic_tag’, true)So rather than spend another hour trying different things can someone give me a hint please? Thanks 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.