Skip Navigation

[Resolved] Distance Filter is not working on archive page

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

Problem: I would like to use a distance filter on a WordPress Archive page, but it does not seem to affect the results.

Solution: The distance filter is currently not implemented for WordPress Archives, but it is on our roadmap of improvements for this feature. Until this is fixed, you can recreate a WordPress Archive using a custom search View and place it in the Loop of the WordPress Archive.

This support ticket is created 6 years, 8 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by brianD-10 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#626244
toolset-filter-bug.jpg

I am trying to: Add a location filter to an archive page.

Link to a page where the issue can be seen:
hidden link

I expected to see:
"Acme, Inc" entry to be hidden, because it is more than 20 miles away from "1300 West Lake Avenue, Baltimore, MD, USA".

Instead, I got:
It is not hidden.

I also notice this bug in your latest beta branches.

#626339

Hi, I see what you mean here. Let me check with my 2nd tier support team to see if the distance filter should be supported in archives. The documentation I've received so far only discusses Views. If it's not meant to be supported, I think the distance filter should be disabled in archives. If it's supported, it seems like it's not working as expected. Stand by and I'll update you when I have some additional information to share.

#627861

Any update on this?

#628046

Hi, I received some feedback from the developers and it appears that distance filtering is not yet implemented in archives. We have an enhancement ticket in place now to add this functionality, but at this time the distance filters will not be respected. Sorry for the confusion here, I've asked to get this fixed so that the distance filter does not appear for archives but that may not happen quickly. In the meantime, you may be able to use a custom View with a distance filter, and place it in the Loop Output editor of this WordPress Archive outside the wpv-loop tags.

#628452

Thanks for the help, Christian. Agree it makes sense for the archive page to support distance filter -- glad to hear it's on your roadmap.

In the meantime, I re-implemented the archive page as a custom view.