How To Query For An Empty Taxonomy Field

Thanks to Sally for the answer, which is to use the NOT EXISTS operator: $args = [ ‘post_type’ => ‘post’, ‘tax_query’ => [ ‘relation’ => ‘AND’, [ ‘taxonomy’ => ‘areaoflondon’, ‘field’ => ‘name’, ‘terms’ => ‘South London’, ‘include_children’ => false, ], [ ‘taxonomy’ => ‘yearofvisit’, ‘operator’ => ‘NOT EXISTS’ ] ], ‘posts_per_page’ => 5, ‘meta_key’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)