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 1 year, 5 months ago.
- AuthorPosts
- October 5, 2021 at 7:52 pm #35019
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
October 6, 2021 at 9:33 am #35028Hi,
It should be sorted alphabetically in ascending order.
Best,
Are these regular custom fields, or some sort of an ACF custom fields?
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 6, 2021 at 1:02 pm #35034Hi,
It’s an ACF repeater field “checkbox” type.
Thanks.
October 6, 2021 at 3:06 pm #35041Okay, 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.
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.