Default Sorting by custome field, then by distance

This topic contains 11 replies, has 2 voices, and was last updated by  Paolo 9 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #32967

    stars
    Free User
    Post count: 19

    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.

    #33031

    stars
    Free User
    Post count: 19

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33037

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33065

    stars
    Free User
    Post count: 19

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33088

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33166

    stars
    Free User
    Post count: 19

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33241

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33474

    stars
    Free User
    Post count: 19

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33475

    stars
    Free User
    Post count: 19

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33533

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33574

    stars
    Free User
    Post count: 19

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33583

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket