Those are the old style meta query arguments. You should use meta_query
instead, which will allow querying on multiple meta keys with conditions and nesting. See the Custom Field Parameters section in WP_Query
for examples.
Related Posts:
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- How to use update_{$meta_type}_metadata filter to modify meta value
- How can I display image metadata?
- How to filter into post meta data before saving
- Explanation for remove_filter used in the below code [closed]
- Filter list by a unique meta value dilemma
- How to remove get_post_metadata using remove_filter inside a class?
- Sorting and limitation with pre_get_posts
- Custom wp_query time filter on meta_value
- Filter for author list in gutenberg core editor
- Filter posts by meta data using custom query
- Excluding posts by meta, and also keeping posts without the meta
- Hide H1 Title using the_title filter
- Adding an orderby filter, casting postmeta with multiple keys
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- How can I modify the WordPress default widget output?
- How to get shortcode’s input values inside a filter?
- How to bulk delete all users with no posts?
- WordPress 3.9 – Trouble Editing TinyMCE 4.0
- How to wrap an element around an iframe or embed in content automatically?
- Earliest hook to reliably get $post/$posts
- Modify links when inserted by WYSIWYG editor
- How to check if a hook is hooked or not?
- Completely strip any hidden formatting when pasting into TinyMCE
- How to add filter to __() and _e()?
- Remove “Private” + “:” in title does not work
- Where is the proper place to add a filter for pre_get_table_charset?
- Change text of Description in Image Library
- WordPress Rest filter for custom taxonomy gets applied to the admin area
- add class to internal links in content
- Am I using the right hook for removing quicktags on the admin TinyMCE?
- Help debugging PHP filter for wordpress [closed]
- About Hooks and Filters
- How to always display a specific post from the search result first
- filter title from shortcode
- Add a Span Around a Product Title in WooCommerce [closed]
- get_query stops working after post filter
- Adding custom column to comments admin panel?
- Filter out some plugin action in wp head / wp_footer
- Filter Gutenberg Blocks Content
- How to make a widget expand wider than the column width when editing its settings in the admin
- Is there a wildcard/catchall filter hook?
- Apply the_content filter, but prevent other hooked actions
- Can the wp_filter object hold multiple values with the same key
- apply_filters/do_action tag characters limit
- Add Defer Attributes to WordPress Scripts with consistent versioning
- How to stop wrapping comments in P tag
- How to modify core when there is no hook?
- String regex match replace for role ‘contributor’ only
- Can plugins that filter post contents work on posts from Word 2007?
- html tags in gettext hook get escaped
- Set default terms for new posts / CPTs
- Get .subsubsub count of post per status queried using pre_get_posts
- Better extend a class or use add filter/action hooks?
- Adaptive product filters for WooCommerce
- Adding a Clone link to product attributes – post_row_actions() filter, or how to override a Class question
- wp_upload_bits Upload Specific Sizes Only
- Woocommerce “added to cart” message on main(home) page
- Why does adding a filter to ‘the_title’ break the server?
- Add filter for specific post type only
- Avoid user registrations with specific email provider
- Help with filter for wp_notify_moderator()
- Should I remove_filter in order to replace a filter?
- Change custom post type GUID in RSS
- filter hook to load a different post/page on current post/page
- How would I be able to use a font awesome icon as a user’s avatar?
- Add something after a filter
- add_filter the_content doesn’t work
- Redirect to woocommerce checkout after adding to cart – item already in cart
- `authenticate` filter never gets called
- How to disable a wp filter in a certain admin panel page
- Is there a filter to programmatically change the HTML tab switching output of the page editor?
- post_orderby filter breaks function
- Disable Remember Me in Login Form
- How do I add a line break to a string that is output by PHP?
- Counting a WP_Post Object value in an arary, using a filter?
- style_loader_tag not changing stylesheet to preload
- List all categories that have results in a query
- Distinguish between page and post in function
- Display posts from today and future in Elementor ‘posts widget’
- Right filter for rewriting page statuscode
- Changing title using filter not working with argument
- Archive Widget – Count only parent posts
- How to filter page title for certain page?
- Displaying posts on a page that have been assigned a value in a database
- Replace Text with hyperlinks
- adding an action inside if condition not working
- Adding filter to an specific page/site direction
- Cutting off excerpt with first sentence
- Change URLs in default WordPress slider to relative from absolute
- Change add_filter based on Ajax
- check, if any “add_action” function contains string XXXXXXXXX
- How to use the filter ‘widget_text’ to a particular text widget with id
- Hook into ‘when user logs in’ [persistent login]
- Filter on widget-title does not work with custom links
- Categorize posts on a page o the basis of category of other post on the same page
- Conditionally including JS based on whether ACF field is set [closed]
- Filter widget_pages_args not working in Pages Widget
- This code works, but breaks the media uploader. How do I integrate it in a way that won’t?
- Using the REST API filter, including two meta_queries breaks the response for one custom post type