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