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!
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.