Skip Navigation

[Resolved] Order Checkboxes Options

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

This thread is resolved. Here is a description of the problem and solution.

Problem:
How can I reorder Checkboxes Options?

Solution:
Checkboxes Options can only be ordered in the Settings for that Field in Toolset > Post Fields > your_field_group > your_field > edit

This support ticket is created 7 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by harryT 7 years, 8 months ago.

Assisted by: Beda.

Author
Posts
#428929

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.

#429180

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.

#429241

Thank you.

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.