Home › Forums › ACF PRO › Issue with Custom Field Filter › Reply To: Issue with Custom Field Filter
I’ve tried setting up a simple test like this. I’ve created fields named bedrooms, city and state. It appears to be working.
2 thinks, this code should look something like this:
$GLOBALS['my_query_filters'] = array( 'field_565712fdeba5c' => 'city', 'field_565713a9eba5d' => 'state', 'field_565713e2eba5e' => 'bedrooms' );
These are field keys and field names for each field
Make sure that you visit settings => permalinks and save it to make sure that you’re CPT archive is working.
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!
❓Ever wondered when and why ACF uses JSON instead of the database? Check out our summary of the most recent session of ACF Chat Friday for the answer, and make sure to register for the next session.— Advanced Custom Fields (@wp_acf) February 23, 2023
© 2023 Advanced Custom Fields.