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.

    USA, UAE…

    Not this;
    USA, UAE, Canada, Pakistan, Eng…

    And currently did not using any tool tip code.