Hello,
I have created a custom field "checkboxes" in a post field group for a custom post type. I want to display in the frontend the different values for any given post as an unordered list. I have also created a view to loop through the different values checked for a given post.
The view works as much as selecting the correct values to display, but I cannot find a way to display each value separately. I get an unordered list with a single item containing all the different values separated by a comma. I understand this (comma separated) is the default display option when you create the checkboxes, but I have not found a way not to treat all checkboxes as a whole.
It looks like this would be quite a standard way to display checkboxes, so I assume I am missing something obvious, just don't know what! So any help would be appreciated.
Hello,
Yes, it is possible to display custom checkboxes field as unordered list, for example:
<ul>
<li>[types field="my-checkboxes" separator="</li><li>"][/types]</li>
</ul>
More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
separator:
text or html tags to insert between each field
Thanks, this is what I needed. Works perfectly.