[wp-trac] [WordPress Trac] #14645: Support for multiple meta_key => meta_value pairs in WP_Query
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 6 23:22:05 UTC 2010
#14645: Support for multiple meta_key => meta_value pairs in WP_Query
-------------------------+--------------------------------------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment(by scribu):
I'm thinking something like this:
{{{
query_posts( array(
'meta_query' => array(
'meta_key' => 'key1',
'meta_value' => 'value1',
'meta_compare' => '>=',
), array(
'meta_key' => 'key2',
'meta_value' => 'value2',
'meta_compare' => '=',
)
) ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14645#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list