Sauter la navigation

[Fermé] Order by distance in wordpress archive

This support ticket is created Il y a 3 années et 8 mois. 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

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

Dernière mise à jour par Jamal Il y a 3 années et 8 mois.

Assisté par: Jamal.

Auteur
Publications
#2038441
Captura de pantalla 2021-04-30 a las 19.25.05.png
Captura de pantalla 2021-04-30 a las 19.24.52.png

Hello.

I'm trying to order by distance the post sof a custom post type archive. I haven't option to do it. However... in a view it's possible. Is it possible to do the same in archive?

I attach 2 screenshots

Thanks!

#2039209

Hello and thank you for contacting the Toolset support.

Unfortunately, the distance search is not supported in archive templates. It is only available for views. If you need to implement it in an archive template, we suggest, as a workaround, to use a view inside of the archive template, just before the loop, and remove anything inside the archive template loop.

#2045115

Hello Jamal. Thanks for your answer. I'll test it soon. Thanks!

#2045117

Thankas jamal. I'll test it soon. Thanks again

#2047631

Awesome. Let me know if you need further assistance. Until then, I am setting this thread as waiting for your feedback, which should keep it open for two weeks. You will receive an email notification before the automatic closure.

Le sujet ‘[Fermé] Order by distance in wordpress archive’ est fermé à de nouvelles réponses.