I assume you have posts with custom fields that have your select fields values as values for these custom fields, in this case you should take a closer look in ‘Custom Fields Paramenters’ from the WP_Query class references at: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters doing so you can just compare you select fields values with your post custom fields using the several relations possibles. Hope it helps.
Related Posts:
- How to know if get_posts() failed?
- Search widget breaks when using multiple loops?
- Search query – exact post title match
- wp_query ‘s’ parameter does not work with custom post type
- Automatic value for custom fields for posts
- Understanding and using metaboxes in posts
- Why won’t my taxonomy query show up?
- WP_Query orderby not working with meta_value_num and menu_order
- How can I sort posts by the date and a custom meta field?
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- How to filter my search in post if contains a word in title, content or excerpt?
- Query Posts With Over 1000 Views
- Query Posts by Custom Field
- Redirect to another page using contact form 7? [closed]
- how to handle the loop using filling bootstrap grid structure?
- WP_Query custom field pass the post id
- Why does WordPress search returns same number of results for every search query?
- Will multiple category descriptions effect my search engine optimization?
- Override WordPress core post-template.php block template
- WP_Query sort by meta_value_num or date
- Displaying a specific sub-category’s posts from wp_query
- Creating Ordered Query using Meta_key
- WP Query between posts custom fields [duplicate]
- How to show the posts list into a static page? Problems to use the loop into a static page
- Order posts by separate menu order for different sub-categories
- Wp_query WooCommerce products
- Get posts after calculating meta key
- Image inside the content is replaced with featured image from my older post
- Tags to Post-ID mysql query. Tag Search
- List posts in a given category
- Admin Notices don’t display on the admin screen for certain post
- Reset Popular post query?
- Duplicating Table of Contents for Paginated Post
- Yearly archive page for future year
- Query Posts multiple conditions
- Display post from current category and same tag?
- Why orderby=”date” does not support manually changed posts?
- how to get posts ids inside pre_get_posts filter?
- How to change wordpress dates to native language (even if the languge not available i wordpress)
- I want to get title name of post, but i didn’t get by this code. Any suggestion?
- Static page does not show my posts
- I am unable to publish/update post
- Get Posts that are in the current month or later
- WP Query to Get Array of Slugs
- page.php showing loop of posts and not page content
- Guest Author – How to display posts on /author/ archive page
- Future post ID not showing
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- How can I show many posts an author has per week?
- How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?
- Ajax load more button in Recent posts widget
- WP_Query with ajax handler returns the same posts
- How to show single post page as home page
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Custom WP_Query with complex ‘post_status’ argument
- is there a way to show the the post title after the image?
- recent posts for different categories
- Search by post title and content in wp_query without order
- Hiding Draft Post In Admin
- Exclude category from
- Blog page not working
- How to display Common posts from specific Tag & Category with Shortcode
- Blog post per page setting conflicting with custom WP_Query?
- Change post order random through out the entire WordPress
- How to insert 2 args into 1 Wp_Query for a slideshow
- How to exclude latest x posts from a paginated query?
- Setup a custom dynamic post
- Anyway to grab author name and featured image in an embeded in inital array of posts outside of loop?
- How to verify wp user password by sql query in wp? [closed]
- Removing noindex posts from wp_query
- How to display the link (title) and thumbnail post?
- Underscores Theme Unit Testing – Catching Untitled Posts
- get_the_excerpt() is not working as expected – returns wrong text
- Including metaboxes from custom post types in global search — continued
- Extend product search with meta in WooCommerce
- WP Query – Posts Per Page not working in combination with category__in
- Ajaxify This Code
- Automatically add custom fields value to wordpress post
- How to use format post in a pertinent way
- How to return another post than requested
- Is there a way to notify specific users when new posts are published to specific pages?
- Search results posts_orderby and ID
- Pausing and Resuming WP_Query results
- How to do set post permalinks using 6 digit random unique function?
- Select only post id and meta value with WP_Query
- Lost draft under all posts and drafts
- Get user categories with most posts in it
- Unable to restore from backup – how to obtain old blog posts?
- Posts and Attachments with “Published” status in Search
- Random ajax load only works with posts_per_page set to -1
- MySql query to get posts with all meta and terms
- How to : pagination in 3 different custom loops on the same page
- How to make search for posts using get method?
- Categories list into registration form
- Categorising search results based on Custom Fields
- Add a custom meta box in the post options that loads some html code in the header
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- Exclude the first ‘n’ number of posts of a tag from home page?
- Query posts and return XML
- how to change the number of posts returned in a specific loop without making it global?