Passer la navigation

[Résolu] Listing map items in order of distance

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 support ticket is created Il y a 3 years, 6 months. 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.

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par simonC-7 Il y a 3 years, 6 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#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?**
lien caché <--- this is the site I am re-creating.

**What is the link to your site?**
lien caché

#2502203

Christopher Amirian
Supporter

Les langues: Anglais (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!