Home › Forums › General Issues › query_posts not searching for text inside the post › Reply To: query_posts not searching for text inside the post
If you want to filter the search based on the custom field, you can take a look at this page: https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/.
That page is talking about archive pages, but the logic should be the same. You can set an attribute to the search URL and get it using the $_GET method. To query based on custom field, please take a look at this page: https://www.advancedcustomfields.com/resources/query-posts-custom-fields/.
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.