Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › sort results
This topic contains 4 replies, has 2 voices, and was last updated by pixelapixel 5 years, 11 months ago.
- AuthorPosts
- September 25, 2017 at 7:57 am #14858
Hello!
I want to sort the results with a custom field, but I am not ordered.Attachments:
You must be logged in to view attached files.September 25, 2017 at 10:54 am #14863Hi,
It’s because that is not a “simple” custom field, but repeater reference field (sub field), which is used in row element within the content. This means that this field does not have a single value for a post, but is used with multiple row items referenced to the post. Therefore it is impossible to order by a sub field, which has no direct relation to the actual post type object, but to the repeated row objects related to the actual post object.
Ordering by custom field will only work with fields that actually store values and not references to multiple items – any fields that is not a repeater field.Unfortunately I don’t think this is possible in any ways.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 10, 2017 at 10:48 am #15080the captured upload was not correct. Sorry!
I want to sort the search with a custom dropdown field for years.
Nor is it possible?October 11, 2017 at 9:22 am #15107Hi,
If the field is not a repeater reference field, but a simple text field (like text, textarea etc..) then it will work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 11, 2017 at 9:42 am #15112You cannot access this content. - AuthorPosts
You must be logged in to reply to this topic.