Skip Navigation

[Closed] Order by distance in wordpress archive

This support ticket is created 3 years, 7 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
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)

This topic contains 4 replies, has 2 voices.

Last updated by Jamal 3 years, 6 months ago.

Assisted by: Jamal.

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

The topic ‘[Closed] Order by distance in wordpress archive’ is closed to new replies.