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

WordPress Trac noreply at wordpress.org
Wed Sep 11 23:43:28 UTC 2013


#18158: Meta Query for posts with a meta key not set (IS NULL).
-----------------------------------------------+---------------------------
 Reporter:  johnnyb                            |       Owner:
     Type:  enhancement                        |  georgestephanis
 Priority:  normal                             |      Status:  closed
Component:  Query                              |   Milestone:  3.5
 Severity:  normal                             |     Version:  3.2.1
 Keywords:  has-patch needs-unit-tests commit  |  Resolution:  fixed
-----------------------------------------------+---------------------------

Comment (by wycks):

 As far as I can tell the example below still does not work using 3.6.1.


 {{{
 'meta_query' => array(
         array(
               'key'     => 'some_key',
               'compare' => 'EXISTS'
               ),
         )
 }}}

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


More information about the wp-trac mailing list