So, I started a thread at Condition with ACF Field Value that has a space. It was closed because I didn’t provide access to the site. (I’ve done that twice on this site, and support somehow blew away the entire page, so I’m really hesitant to give access.)
The original thread said:
I’m using a condition on a looper to show only particular content.
The condition is setup as:
{{dc:acf:post_field field=“topic”}} in Professional DevelopmentThe “topic” field is an ACF checkbox field with multiple options, some of which are single words (like “Teaching” and some of which are a phrase (like “Professional Development”.)
I have the ACF set to return the “Label” (because I’m displaying that label in various places).
When the condition is setup as:
{{dc:acf:post_field field=“topic”}} in Teaching
it works just fine.
I was originally thinking that the issue might have to do with the fact that the value had a space. However, I’ve subsequently realized that the Conditional only fails when I have more than one option selected in the “topic” field. That ACF field is setup as a “checkbox” type. Most of the records only have one checkbox checked. However, in this case, they have two … and my conditional returns nothing. Isn’t that the point of the “in” option?
How can I make this work?