Skip Navigation

[Resolved] Sort by distance with the legacy view

This support ticket is created 2 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by jameyR-3 2 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2603381
Screenshot 2023-05-05 at 10.53.12 AM.png

Creating a search query with the legacy view editor used to have a sort-by-distance option for search results. Has this option been permanently removed?

#2603885

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

With the ordering parameter you should select the address field and that will give you the option of distance.

Please check the following screenshot: hidden link

#2604101
Screenshot 2023-05-08 at 11.24.06 AM.png
Screenshot 2023-05-08 at 11.23.08 AM.png

Thank you for your reply. That is very helpful.
Unfortunately, my address custom field is not showing as an option in the ordering field. (see screenshots)
How can I get the map-address field to appear as an option?

#2604273

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It should display that field I'm not sure why its not available.

Can you please share problem URL of your view where you want to add sorting field and admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2605103

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check now: hidden link

I've clear the custom field cache from: Toolset => Settings => Front-end content => Cache => Clear custom field cache now
- hidden link

I can see the map address field now in the ordering section.

#2605259

My issue is resolved now. Thank you!