Skip Navigation

[Geschlossen] Order by distance in wordpress archive

This support ticket is created vor 3 Jahren, 7 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Jamal vor 3 Jahren, 6 Monaten.

Assistiert von: Jamal.

Author
Artikel
#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.

Das Thema „[Geschlossen] Order by distance in wordpress archive“ ist für neue Antworten geschlossen.