Home › Forums › General Issues › WP archive with two or more filter › Reply To: WP archive with two or more filter
Hi @andreasb,
Thanks for the post.
You will only need to add the third field to the $GLOBALS[] class like so:
Passing the third field’s key and name like so:
// array of filters (field key => field name)
$GLOBALS['my_query_filters'] = array(
'field_1' => 'color',
'field_2' => 'size',
'field_3' => 'weight'
);
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.