Skip Navigation

[Resolved] We don’t want location radius to be a required filter

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

Problem:

can the location search itself be optional? Right now it requires a location in order to search at all.

Solution:

There isn't such a built-in feature to make location radius optional, but you can use some CSS codes to hide the location radius fields

Relevant Documentation:

This support ticket is created 6 years, 4 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 3 voices.

Last updated by cristianM-3 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1077625

Tell us what you are trying to do?
We are trying to make a page that searches through a custom type called an Event. We'd like to be able to search the events by date, category and location. Right now, our filter is requiring us to put a location radius in. Is there a way to make that optional?

Is there any documentation that you are following?
We've looked at the Views documentation.

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1078289

Hello,

There isn't such a built-in feature to make location radius optional, but you can use some CSS codes to hide the location radius fields, I can see you have already done in the website:
hidden link

#1078482

I think what I meant to ask was, can the location search itself be optional? Right now it requires a location in order to search at all. We don't mind the radius field, but we'd like to be able to do a global search without putting in any data in the location field.

#1078638

We figured it out

#1082882

Hello

Can you please share how you did the location field optional?

Thank you