How to check if a post “does not have term” in conditional statement? May 28, 2022 by Tarik Billa if ( !has_term('term', 'taxonomy', $post->ID )) { Use the NOT (!) operator