Home › Forums › General Issues › Another Issue with Filtering by Multiple Keys › Reply To: Another Issue with Filtering by Multiple Keys
The state select field is simply a list of all US states, i.e.
I may have made this more complicated than it needs to be including the array portion of my other function. Let’s make this simpler.
I’m passing a $city and $state variable to this code.
I need to loop through and display all pages that have ACF values equal to these $city AND $state variables. Right now I am able to match ONLY the city or ONLY the state, but not both.
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.