Condition with ACF Field Value that has a space

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 Development

The “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.

But when the value contains a space, it returns nothing.

Is this a bug or is there is a way to make it recognize the whole phrase?

Further note … I now tried this with another value that has a space, so it seems to be JUST the “professional development” value. I’ve copy-pasted that value directly from the ACF setup, and I changed ONLY that value in the conditional. Changing the value works … copy-pasting the value does not. So, that makes no sense! Any ideas?

Hello Danni,

Do the other values work with your condition? Is it only the “Professional Development” that is having the issue? We would love to investigate this issue further. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.