Home › Forums › General Issues › Setting up front end filtering and sorting by custom fields › Reply To: Setting up front end filtering and sorting by custom fields
Thanks so much for getting back to me. I switched the | back to a , and double checked my variables and it looks basically just like the sample code. I am still getting the same error. It is on this line
foreach( $field['choices'] as $choice_value => $choice_label ):
I’m not sure what ‘choices’ is supposed to be.
Also – I maybe didn’t mention this before but this is pulling from a custom post type rather than regular posts. Does that make a difference?
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.