I’m typically against using a bunch of plugins, but an option for you is to use the Relevanssi plugin. I use it along side ACF and allows you to search within those fields.
If you decide to use it, after installation/activation, go to the setting page for the plugin and scroll down to the “Indexing Options” section and under that there is a field called, “Custom fields to index”. You have a few options. Here’s the description from the plugin itself:
A comma-separated list of custom fields to include in the index. Set to ‘visible’ to index all visible custom fields and to ‘all’ to index all custom fields, also those starting with a ‘_’ character.
I typically set it to “visible” so it’ll search all of my visible custom fields.
Hope this helps.
Related Posts:
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- Use value from meta key array for use in WP_Query
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- ACF Relationship Field Search Filtering [closed]
- Custom WP_Query order by post_meta and (author) user_meta
- Query WooCommerce orders where meta data does not exist
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- Perform query with meta_value date
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- meta_query with array as value
- Meta Query for specific months
- How do I search inside specific taxonomies in WordPress
- How to orderby meta_value_num with dollar ($) sign
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- If two first numbers exist in wp_meta_query value
- WP_Query meta_query >= date
- Creating a custom search for a specific post type
- ACF Date Based wp_query
- Custom query based on meta key – Reduce three states to two in results?
- What is the random string I am seeing when I use get_query_var?
- WP Query with custom Shortcode
- Any number in meta key (wp query)
- Optional Meta Query
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- Editing the default wordpress search
- Extend product search with meta in WooCommerce
- Meta Query relation “AND” then set array accordingly
- WP_Query with meta_query dosen’t return results
- Modify Search Query if original Query gave no results
- Include post content of linked posts in search
- Get a list of posts by specific category
- How to set up hierarchical relationships without using plugins / meta query
- Issues with search after added meta_query
- Sorting search results with custom dropdown
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- Custom query filter by ACF date custom field
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Why doesn’t my WP Meta Query return any results?
- WP_Query meta compare must include ALL array values
- meta_query where the meta value is not the post title
- Query multiple post types, but different order for each
- Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
- Multi-layered WP_Query
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- Excluding posts from search results page with meta query not working
- Woocommerce Get Orders By Meta Value
- Multiple WP_Query args combinations according to post type
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- Meta query orderby meta_value_num sorting by role first
- Query against multiple locations within single custom post type post
- WP_Query, ACF field and array
- Strange results from WP_Query
- Pre get posts sort by meta key returns no results if meta key does not exist
- WP Query. Ordering posts by another post types meta
- Add to search posts query array with post IDS which will appear first
- Search has query that will return no results
- WP Query – Search in title or author_name
- Limit default Search query to post_title
- Query by meta value (add a dropdown of all values)
- Meta query doesn’t remove placeholder escape before query
- How to show terms from another taxonomy
- Get posts meta_query by repater field
- What is the best way to reset a search on a meta_key / meta_value?
- Conditional posts in WP_query for search
- Filter posts/pages by user_role array
- Search Functionality broken by the wp 4.2 update
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Need help setting up a search form for wordpress [duplicate]
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- Get posts using multiple values from ACF checkbox as meta query wordpress
- How do I subquery with custom meta fields?
- Use meta query only 3 or more results?
- Search query alteration not working for meta values
- Search results stuck on page 1
- Advanced Search – Is this possible?
- compare meta_query in get_posts arguments
- How to make an activities stream mixing posts and comments?
- SQL query equivalent to WP User Query
- meta_query on a date range using an array of values
- Order Posts by meta value AND published date
- How to reduce the number of queries?
- Query custom post type by custom taxonomy (category slug)
- Search for “2nd” also returns “22nd” in wp_query
- get posts by meta_key from inside key of post meta
- Is_single() conditional tag returns null in query
- Is it possible to query a custom field where the value is between two fields?
- ACF accessing a field from the query, but not in post
- filter wp_query result with custom field values
- WordPress search WP_Query to cover multiple post types and their custom fields?
- How do i create a custom post query when the meta value is an array?
- WP Query – grouping posts by same meta key, adding together values from another key
- setting offset to category number in archive page
- Query for current post
- Why does my output of get_the_ID() change after a wp_query?
- Very slow query generated getting meta data from posts
- How to query 5 users in random who have published more than 10 posts
- Custom pagination (Title, date and teaser)
- Using custom field as ‘orderby’ value causing post grouping by publish date
- WP_Query by meta key not returning any posts