custom field selectors sort order

Home Forums Product Support Forums Ajax Search Pro for WordPress Support custom field selectors sort order

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35019
    micdreams67
    micdreams67
    Participant

    Purchased from Codecanyon.net – Inv#IVIP45061006

    When using a “custom field selectors” https://documentation.ajaxsearchpro.com/frontend-search-settings/custom-field-selectors – How do we have the returned valued sorted alphabetically? We’re using the Radio buttons option but everything is random on the search page & can’t find any documentation on shortcode modifiers i.e. {get_values} or we need something like a checkbox to sort the returned values or something like {get_values sort=asc}

    Thanks,

    Mike

    #35028
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    It should be sorted alphabetically in ascending order.
    Are these regular custom fields, or some sort of an ACF custom fields?

    Best,
    Ernest Marcinko

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


    #35034
    micdreams67
    micdreams67
    Participant

    Hi,

    It’s an ACF repeater field “checkbox” type.

    Thanks.

    #35041
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Okay, that is the problem then. Please mind that repeater fields may not work whatsoever as those store items indirectly as reference, and it is almost impossible to filter by them via a database query.
    If you want, you can add temporary FTP and back-end access, and I can try debugging the code why ACF return the field values in random order. Maybe there is some sort of a configuration I can push programmatically to fix the ordering.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.