The question was for WordPress 3.0, but just in case someone has the same question for a more recent version, from WordPress Codex:
“Starting with version 4.1, meta_query clauses can be nested in order to construct complex queries.”
https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
So, that query should work on the current WordPress version.
Related Posts:
- Does tax_query really beats meta_query in all situations?
- Query Multiple Post types each with own meta query
- Perform query with meta_value date
- Meta Query with date and time on the same Day before given time
- search query within custom taxonomy term, post title and meta field
- How do I create my own nested meta_query using posts_where / posts_join?
- WooCommerce: filter by parent product’s taxonomy and product variation’s meta data
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Order a query result by a numeric meta key even if it does not exist, but put the posts with meta key first
- WP_Query last five posts, simply ordered by meta_value
- Tax query clause inside a meta query clause?
- Fetch Record based on meta key dates
- How to display multiple custom fields with the same meta_key in an ascending order?
- Is it a good idea to improve meta query performance by adding tax query?
- how to make members list directory through wordpress post custom meta key.
- Tax query AND/OR meta query [duplicate]
- Query with meta_query and tax_query together not working properly
- How to provide meta_key array to wp_query?
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- Is it possible to add relation between meta_query and tax_query?
- Show single posts date, in a page of posts
- meta_query with array as value with multiple arrays
- Why doesn’t my WP Meta Query return any results?
- WP_Query Class custom field parameters
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- Facing problem with tax_query results
- How do i create a custom post query when the meta value is an array?
- ElasticPress is (aparently) messing with my search filters
- WP_Query for a taxonomy value OR a custom post type meta field
- Query for current post
- Custom query to retrieve oldest post and retrieve others with date interval
- Orderby query does not work for custom fields even with meta query
- Custom WP_query and integrating into theme file
- Extending WP Query: Custom geolocation meta values work, but tax_query breaks
- query post based on comparison
- WP Query – Show custom posts only if user contain some user meta
- Custom query with custom filtering returning incorrect results
- Adding a language rule and displaying posts with a custom taxonomy term on its archive page
- How to query for all posts that have a particular meta key?
- Make meta query treat meta_value as 1 or 0
- Array as ‘key’ in WP_Query
- Reset WordPress Post Query to default
- Ordering a mysql style datetime stamp with meta_query
- Advanced WP Query and/or
- How to get all post except particular category without breaking the paging
- How do I rewrite this loop as a new WP_Query style-loop?
- Exclude All Posts Which Do Not Have A Tag Assigned
- How can I override one post and make it display content for another post?
- Include current post into loop
- Adding a tax_query to a WP_Query Object
- Filter Custom Taxonomy Posts
- Get all posts which was posted on X Days WordPress
- Is it possible to query a custom field where the value is between two fields?
- Finding WordPress Posts assigned to multiple categories
- Meta Query doesn’t works as espected
- Filter posts by comparing custom meta value against postdate
- Order or Orderby in tax_query (How to define order of terms in WP_Query)
- Wp_query with 2 meta keys and array of meta values
- Advanced WP_Query with meta_query, orderby?
- meta_query: check if number exists
- Searching for meta_key returns 0 posts
- Easy way to write complex queries in wordpress
- WP_query – Filter by tax_query and meta_query using multiple select
- Filter post query to only show direct children of category
- Order post type by sum of two custom fields
- get_posts output always same post
- Query_posts works when appending via AJAX call wp_query doesn’t?
- Event with multiple dates, display events chronologically
- Use WP_Query or query_posts() or get_posts() for optimizing a site?
- meta_query fails to compare on values containing apostrophes
- How to create custom query by keyword in post title?
- meta queries do ‘either/or’ checks
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Conditional operator OR not working with custom fields
- complex get_posts() query to select child pages
- How to set up hierarchical relationships without using plugins / meta query
- WP Query ordering on a meta field for posts with a date in the future not ordering by datetime
- Tax Query only returns for the first of several terms
- Is this meta query problematic?
- Get posts that do not have the same tags as current
- WP Query Meta Value – How To Identify Specific, Unique Values?
- find custom post type post by searching its custom field with my string
- Selecting posts with a given meta value for a meta key
- Order by meta_key doesn’t work
- exclude product with available tag
- How to add tax_query to $args with concatenation
- Should I reset $wp_query?
- Check if searched number is within the post meta value
- Meta query compare for ID’s greater than specific ID
- Appending to existing WP_Query’s meta_query if exists
- How to order posts on each different category?
- Posts Query | Query to only show sub categories
- Issues with search after added meta_query
- Sort by presence of thumbnail
- Display posts with specific value first in query
- How to print term name inside wp post loop
- Get every post with value in meta key
- Get posts in taxonomy randomly
- Loop posts based on permalink term