[wp-trac] [WordPress Trac] #40902: meta_query compare NOT IN with an array of post meta does not work

WordPress Trac noreply at wordpress.org
Fri Jun 2 17:56:34 UTC 2017


#40902: meta_query compare NOT IN with an array of post meta does not work
-------------------------------+------------------------------------------
 Reporter:  metaphorcreations  |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  4.7.5
 Severity:  normal             |  Resolution:  worksforme
 Keywords:                     |     Focuses:  administration, performance
-------------------------------+------------------------------------------

Comment (by metaphorcreations):

 I don't think this needs to be continued here, but could you take a look
 at the support forum ticket I made https://wordpress.org/support/topic
 /meta_query-compare-not-in-with-an-array-of-post-meta/#post-9189125

 I'm interested to hear your thoughts on what I'm attempting to do. Thanks!

 Replying to [comment:1 adam3128]:
 > Hey metaphorcreations,
 >
 > I can't imagine this being a bug straight off the bat.
 >
 > Otto does a good job of explaining what you might be facing over at
 >
 > https://wordpress.stackexchange.com/questions/66056/filter-posts-with-
 meta-query-not-in-where-value-has-multiple-values
 >
 > In short, I'd probably check that you don't have multiple meta rows,
 change your value parameter to an array and check posts contain the meta
 field with a value.
 >
 > Hope this helps.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40902#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list