ACF Checkbox values duplicating

Hey Team,
I have a Post Type called Project Page. I have a set of checkboxes (these were radio buttons but I needed to choose more than one so I switched them). When two or more check boxes are selected. I get a new text line for each selection - and each line has the full list of items selected. Just one line with a list of comma delimited options would suffice. Seems to me I need to prevent this from looping - or rebuild the output differently.

You can see an example here: https://vermontframstg.wpenginepowered.com/finished-project/horse-farm-in-woodstock-vt/

Hey Gregg,

Your Dynamic Content should be {{dc:looper:item}} to get the individual items in the loop.

Hi @christian,
Thanks for the reply. Well, that’s closer! What I actually want is for the results to be listed all on one line rather than one line for each entry. Is this possible? I used a nested div to start but before add the CSS to get them to line up, is there an easier way to make this happen? Or do you have a snippet of CSS I can use to accomplish this end goal?

Hello @lorax,

I would suggest you please add a custom class to the element on which you want to make the text on the same line. Now you need to add this custom CSS code.

.inline-text{display:inline-block; }

The purpose of providing custom CSS is to show you how to add CSS code to your site. Writing custom CSS is outside the scope of our theme support. If you need more customization, you need to learn CSS and learn how to use the browser’s element inspector, or you can subscribe to One where customization questions are answered.

Hope it helps.
Thanks

1 Like

@prakash_s,
That’s all I needed. Thank you!

G

You are most welcome, @lorax

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