Home › Forums › Front-end Issues › Create a filter by repeater sub field › Reply To: Create a filter by repeater sub field
Have you read this tutorial: https://www.advancedcustomfields.com/resources/query-posts-custom-fields/? Please read it carefully to learn how to query posts based on custom fields.
The value depends on how you get the input from the visitors. If you want, you can use URL parameters and get the value by using the $_GET variable. This page should give you more idea about it: http://php.net/manual/en/reserved.variables.get.php. There’s a tutorial how to filter posts on the archive page, but I believe you can do it on any other pages too. Please take a look at this page to learn more about it: https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.