I have created a custom field labeled as “priority” with the options of “1,2,3,4,5,6,7,8,9,None”, with “None” being the default value.
I would like searches to be sorted by this priority field first (So a search of a zip would return results 1-9 first), then after this you would see any other closest “None” priority results displayed.
I currently have the “Priority” field as the default sort order, but what I get when doing a search is a listings list that are sorted first by distance, then by priority.
So I get a list like this:
Listing Item A
Distance: 25 Miles
Priority: 2
Listing Item B
Distance: 27 Miles
Priority: 3
Listing Item C
Distance: 35 Miles
Priority: None
Listing Item D
Distance: 41 Miles
Priority: 1
Listing Item E
Distance: 44 Miles
Priority: 4
What settings do I need to adjust in order to get this list to look like this:
Listing Item D
Distance: 41 Miles
Priority: 1
Listing Item A
Distance: 25 Miles
Priority: 2
Listing Item B
Distance: 27 Miles
Priority: 3
Listing Item E
Distance: 44 Miles
Priority: 4
Listing Item C
Distance: 35 Miles
Priority: None
I am currently using the latest version of all Geo plugins, and WP.
Thanks.