Home › Forums › Feature Requests › Advanced Search for custom fields › Reply To: Advanced Search for custom fields
Thanks for the question. This is within the scope and I have done it many times with ACF and WP.
WP has a get_posts function / WP_Query which accepts a meta_query argument.
This allows you to search custom field data. There is a resource article which should how to do some querying, so that would be a good place for you to start.
After that, you need to create a custom page template, or use an archive as a place to render the loop and then find a way to pass arguments to the query either by AJAX, or by url $_GET param.
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.