Jika Posting Centang Kategori WordPress

//'10' is the term ID, 'event category' is the taxonomy
if (has_term(10,'event_category')) {
}
Andrew Lautenbach