if post checked category wordpress code example
Example: if post checked category wordpress
//'10' is the term ID, 'event category' is the taxonomy
if (has_term(10,'event_category')) {
}
//'10' is the term ID, 'event category' is the taxonomy
if (has_term(10,'event_category')) {
}