I have used the "Value to store" option in the Post Fields>Checkboxes to give a numeric value to each of my options. When the options are checked, I would like them to display in that order. For example: 4K=1, 3DBD=2, BD=3, DVD=4, DC=5, VOD=6
If 4K, BD and DC are checked. I would like the Content Template to then display the option as 4K/ BD/DC based on those values.
I'm using the following generated code: [types field='disc-type' separator='/'][/types]
The results show up as BD/4K/DC
Is there an option to sort by that, or is it something that has to be defined elsewhere via PHP?
Also, is there a way to write a conditional statement that will see the numeric value and not display the item? For example, if the value is VOD=6, then I don't want that data displayed.
Checkboxes Options can only be ordered in the Settings for that Field in Toolset > Post Fields > your_field_group > your_field > edit
It would reuqire a Custom ShortCode to render a Checkboxes Field with your Custom Criteria.
Keep in mind this Field is an array and it is reltively complex to render it in a ShortCode.
It seems -unfortunately- that for now you need custom programming work which is beyond the scope of our support.
At this point I would suggest you consider contacting one of our certified partners from this link:
https://toolset.com/consultant/
You will get the custom assistance you need to get on with your project.