Skip Navigation

[Closed] sorting filter values

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 4 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1771515

hello, i have created an archive with toolset here: hidden link

You can see that I have a list of numbers as check boxes in the filters to the left. Take for example "Inlet Diameter (mm)" how can i make these sort from smallest to largest?

#1772485

You should be able to add an "order" attribute to a filter shortcode and set the order to "ascnum" to order by numeric value instead of alphabetic order:

[wpv-control-postmeta field="wpcf-field slug" type="checkboxes" url_param="wpv-wpcf-field-slug" order="ascnum"]

Have you tried this option yet? Is it not working as expected?

The topic ‘[Closed] sorting filter values’ is closed to new replies.