Skip Navigation

[Resolved] Listing map items in order of distance

This thread is resolved. Here is a description of the problem and solution.

Problem:

Order results by distance does not work in the views block.

Solution:

Use the workaround below:

Relevant Documentation:

https://toolset.com/errata/cannot-order-results-by-distance-in-views-created-with-the-block-editor/

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.

This topic contains 3 replies, has 2 voices.

Last updated by simonC-7 2 years ago.

Assisted by: Christopher Amirian.

Author
Posts
#2502109

**Tell us what you are trying to do?**
List the results in order of distance on a map page.
I am using blocks. I have since read a post from February that it's not possible with blocks (https://toolset.com/forums/topic/order-view-by-distance/)
Can you tell me if this is still not possible with blocks? I am finding Legacy confusing.

**Is there any documentation that you are following?**
https://toolset.com/forums/topic/displaying-and-order-by-distance/
https://toolset.com/course-lesson/filtering-and-ordering-map-markers-by-distance/

**Is there a similar example that we can see?**
hidden link <--- this is the site I am re-creating.

**What is the link to your site?**
hidden link

#2502203

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Would you please follow the workaround below to fix the issue?

https://toolset.com/errata/cannot-order-results-by-distance-in-views-created-with-the-block-editor/

Thank you.

#2502249

Thank you Christopher. That has worked! I am so grateful.

#2502251

My issue is resolved now. Thank you!