ACF Checkbox output question

I use the ACF for job offers on a client website. These offers have some options e.g. nurse, caregiver, or full time, part time (contract). To do so I use checkboxes (to allow multiple options).

The output either via: {dc:post:meta key="contract"}} or {{dc:acf:post_field field="contract"}} results in the values of the marked checkboxes: eg. “full time,part time”. The problem here is the separator between the two values. It should be a comma with a space after. How to achieve this?

Best regards
Mirco

Hi @mircotripoczky,

Thanks for reaching out about this. It sounds like your field stores the items as an array. When an array is detected, it will just combine them with commas but you can change the delimiter to include a space like this:

{dc:post:meta key="contract" delimiter=", "}}

Let us know how it goes!

Works like a charm and yet so simple.

Many thanks :slight_smile:

Hi @mircotripoczky,

You’re welcome and it’s our pleasure to help you. If you have any other concerns regarding our theme features, feel free to reach us.

Thank you.

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