[wp-trac] [WordPress Trac] #18158: Meta Query for posts with a meta key not set (IS NULL).

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 6 19:44:45 UTC 2012


#18158: Meta Query for posts with a meta key not set (IS NULL).
-------------------------+-----------------------------
 Reporter:  johnnyb      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:  3.2.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by Master Jake):

 * cc: chappellind@… (added)


Comment:

 I agree with the explicit 'NOT EXISTS' option. You could string it in with
 other queries using the relation 'OR' to achieve the proper result.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18158#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list