Using has_term
-
Hello, I’d like to do a thing based on whether or not something is in an event category. This isn’t working.
Help?
if(has_term( 8, 'term_id' )) { $hidetitle = " no-title"; } else { $hideexcerpt = ""; }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Using has_term’ is closed to new replies.