Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Using has_term

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles