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
- filter search custom field query
- How to let users choose where to search for posts?
- pagination not working for category.php (custom post types in categories)
- Query based on custom fields start and end date
- How to display Related Posts based on number of taxonomy terms matched
- Filter date from post meta when date is in string format
- query_posts adding extra code to homepage
- How to show only the most recent post on my custom post type archive?
- Custom Post Types — $args vs. labels array
- How to make WP_Query not to show irrelevant posts?
- What is the ID parameter for custom post types in query_posts?
- Loop for custom post types filtered by a taxonomy
- Get an array wich contains the post_name of every post that has the custom post_type “pelicula”
- Add first letter of titles to array, then compare arrays
- How to limit post per page of custom post type?
- Query Custom Post Types with checkboxes
- Custom query – get_the_terms not work
- WP_query – Filter by tax_query and meta_query using multiple select
- Create Array from custom post type to display a slider
- Is it possible to load a different sidebar in single.php based on a meta_query filter?
- 3 random images from custom post type, each in a div with a diffrent class
- Why are some of my custom posts not showing up on my page?
- post-per-page and offset not working
- Control content before and after custom post type loop
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Display custom posts randomly in custom taxonomy archive
- Getting all ID’s matching a title in a custom post type
- why is the current page title being output?
- Getting a custom post’s custom field based on another custom post’s custom field select
- Count custom post type based on two meta data
- Inefficient Query Confusion
- Not able to export large no. of posts in csv
- attach CPT data to a taxonomy
- Check if user has comment on current post
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Targeting custom post type via functions.php doesn’t work
- FacetWP paging custom wp_query
- Get category if used in a custom post type
- WP_Query of custom post type sorted by meta_key has unexpected results
- Custom Query: If One Post Object Field Value Is The Same As Another
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Query for post and costom post_type in same category filtered by meta for post_type
- If meta_value of meta_key is less than today’s date update meta key
- fetch custom post by meta key if key value is does not know
- Can’t change posts per page in WordPress Post Type Query
- postsperpage value not being applied
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- How do I disply an array inside a custom post type?
- Custom Post Type Field Array parsing [closed]
- Best way to create a search for custom post type by custom field values
- Dynamic category name in query post
- Getting custom post types to properly display alphabetically
- Incorrect ordering of custom post type based on time
- List all posts in taxonomy term
- Query all post types but limit to parents
- Query Posts, order by meta value
- WP_Meta_Query object with conditionals
- WordPress giving a 404 page when passing a year argument different than the current year
- Sorting by meta_key different to search criteria?
- Using WP meta query to show custom post types by a start and finish date
- 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
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Custom Post type showing up in loop, regular posts are not showing up
- Query Custom Post Type based on text input
- Getting custom post type info using get_adjacent_post
- Custom Post Type Query W/Category Dropdown
- Query all posts under one taxonomy? Why is my code not working?
- Custom Post Types Not Showing Up In query_posts Result
- Find Posts based on Child Post value
- Query for bbPress replies to current topic?
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Showing only posts from the current user who is logged in?
- Why can’t I query more than 1 post type at a time?
- Sorting the Loop by Taxonomy Value
- Custom Query: Multiple CPTs and a taxonomy filter
- How can I loop at a Specific Taxonomy from a custom post type?
- Update value inside array update_post_meta
- WP query_posts group by meta field related
- returning the currect URL for nested posts
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- order the meta query results by 2 custom fields