Just add 'compare' => 'IN'
:
'key' => 'document-type',
'value' => array( 'Install Manual', 'User Manual' ),
'compare' => 'IN'
Related Posts:
- Using meta_query, how can i filter by a custom field and order by another one?
- Fail to compare dates in meta_query
- Order by & include array by specific post ids
- Limit the post for differents custom post type in the same wp_query
- order by meta_value serialized array
- Using Query Posts With Multiple Post Types And A Taxonomy
- Used with meta_query in query_posts works slowly
- Display custom post types with custom date field value (before today) & order by custom date field
- Get posts between custom dates
- Display a CPT based on a metabox selection
- Limit the post for differents custom post type in the same wp_query
- find custom post type post by searching its custom field with my string
- Use WP_query to match post types based on custom field values
- Filter RSS feed for custom post type to events for next 7 days only
- Custom Query With Multiple Meta Key Value
- WP_Query orderby custom field then post_date in one query
- Filtering a WP_Query meta_query by numeric values isn’t working
- Querying custom post type with 2 custom fields (date-range)
- Querying custom posts and regular posts
- How Can I save multiple records in same meta key?
- Using Offset in Custom Post Type Query
- filter search result with custom post type meta key
- Posts per Page on custom Taxonomy Template
- Query posts by custom post type and custom taxonomy
- Can’t sort order of wp_query with 2 meta keys
- Query not returning CPT posts
- Post Rank on Single Post page based on custom field
- Unable to display multiple post types in same query (WPML WP_Query)
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Quickest way to get last or oldest post date – WP Query
- ‘category__and’ for custom taxonomy?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- query_posts with a custom post type, a meta_query and sorting by post date?
- Filtering by Post Meta Custom Fields – Performance
- Ignore sticky posts if post is not in meta query
- Query that joins the postmeta table twice
- Combine query_posts() and get_posts() into single query
- how can i get posts from custom post type particular taxonomy category
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- Setting proper query for multiple custom admin filters
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Sorting Custom Post Type by Meta Value but wont display when set to 0
- Returning a list of custom post types excluding those without a specific meta_value
- Display only one post each WEEK
- How to store multiple values in 1 meta_key with radio input?
- How to filter wp_list_categories output with some custom post type meta query?
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- How to do WP_Query with two meta fields with orderby clause
- WP Meta query for a custom post type based on two values
- Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
- Filter date from post meta when date is in string format
- Custom query – get_the_terms not work
- 3 random images from custom post type, each in a div with a diffrent class
- Display custom posts randomly in custom taxonomy archive
- why is the current page title being output?
- Getting a custom post’s custom field based on another custom post’s custom field select
- Not able to export large no. of posts in csv
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Best way to create a search for custom post type by custom field values
- Dynamic category name in query post
- Two queries – one with checkbox ticked, one without – comparing meta_query
- HM CMB: Post Select Field for CPT ID
- 4 posts per page from single category
- Display Posts Query with IF function
- Getting custom post type info using get_adjacent_post
- Query for bbPress replies to current topic?
- Why can’t I query more than 1 post type at a time?
- Update value inside array update_post_meta
- WP query_posts group by meta field related
- Get an array of the number of post per year of a custom post type (WordPress)
- Using OR relation in meta_query to check for a value before sorting by another
- custom post type and a “sticky” position taxonomy
- Filter result of Custom Post Type using meta_query with ACF
- meta_query Where the key value is stored as an array
- Order Posts in Custom Order
- ACF meta_key and meta_value break loop
- Sort custom post archives by a meta value from a different custom post type?
- Staggering featured post using ‘sticky’
- post type => ‘any’ not applied my custom queries
- How to get the posts that my following users are liked?
- Sort loop by custom field from different post type
- Meta_query by date for Events archive
- Query the title of the page to show posts with matching category in the loop
- How to Create movie schedule by custom post type query
- Main site single-property.php design, as homepage of a multisite
- How to get main div html to print a list of posts inside?
- WordPress custom field images not getting inserted into array
- Selecting posts older than the current Unix epoch timestamp
- Meta-Box to add multiple items one at a time and on publish save all
- Using $seed on a custom post type for randomly displayed posts
- Display custom posts in checkbox list
- What’s the best way to show custom post types? With page template it’s not perfect!
- Querying meta values within an array
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- How do I correctly query posts from a post ID?
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- Display ACF object field data using Elementor Custom Query