[wp-trac] [WordPress Trac] #18158: Meta Query for posts with a meta key not set.
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 27 12:52:03 UTC 2011
#18158: Meta Query for posts with a meta key not set.
-------------------------+-----------------------------
Reporter: johnnyb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 3.2.1
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+-----------------------------
Comment (by scribu):
Each inner meta query is one join. So for the NOT EXISTS case, it could
be:
{{{
... INNER JOIN wp_postmeta as m1
... AND m1.meta_key != $meta_key
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18158#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list