compare meta_query in get_posts arguments
If we define the conditions: A: my_custom_field_ignore EXISTS B: my_custom_field_ignore = 1 then NOT ( A && B ) is equivalent to: NOT ( A ) || NOT ( B ) meaning in our case: ( my_custom_field_ignore NOT EXISTS ) || ( my_custom_field_ignore != 1 ) We could therefore try the following for WP 3.5+ … Read more