Front end check boxes sorting by the first number, eg. 1-5, 10-20, 5-10

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Front end check boxes sorting by the first number, eg. 1-5, 10-20, 5-10

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15284
    dpeschio
    dpeschio
    Participant

    I am using your search function to sort custom post types by category (dev page here:). One of the categories is ‘number of people’ and the grouping is 1-50, 50-100, 100-200 and so on. The way the fields display on the front end check boxes is by the first number in the string, for example, 1-50, 100-200, 50-100. How can I get them to sort by their total value – as in 1-50, 50-100, 100-200?

    Thanks in advance,

    dp

    #15295
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Try changing the default term ordering option from ‘Name’ to ‘ID’: https://i.imgur.com/22RasTu.png
    It will however affect all the term selectors.

    Another possibility would be to manually choose the terms from that taxonomy instead of using the ‘Use all from..’ option: https://i.imgur.com/IwjUjPy.png
    The ordering should stay as you order the selected terms.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.