This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

custom field selectors sort order

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35019
    micdreams67micdreams67
    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 MarcinkoErnest Marcinko
    Keymaster

    Hi,

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

    #35034
    micdreams67micdreams67
    Participant

    Hi,

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

    Thanks.

    #35041
    Ernest MarcinkoErnest 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.