Home › Forums › Front-end Issues › Option to Trim Checkbox Fields › Reply To: Option to Trim Checkbox Fields
Yes I am talking about front end. I am using this code..
<p>Colors: <?php the_field('colors'); ?></p>
This is checkbox, let say I have checked 6 checkboxes and its showing me 6 options in front end..
e.g in front end..
USA, UAE, Canada, Pakistan, England, China,
But I want to trim them to show only 2 options not to trim the words.
e.g
USA, UAE…Not this;
USA, UAE, Canada, Pakistan, Eng…
And currently did not using any tool tip code.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.