Skip Navigation

[Resolved] Search Filters not working properly

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by michaelH-21 6 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#916084

hidden link is my page where I have my posts (house rentals) showing up and have a custom search at the top of the page. I have basic numeric fields that I'm trying to filter by, Bedrooms, Bathrooms, and Distance. With the Bedrooms and Bathrooms, for example, I want to show 2 or more bathrooms, not just show the houses that have 2 bathrooms exactly. Same with Miles to Course, showing houses within a radius. However, when trying these filters, they aren't working correctly.

For example, if you try 5+ bedrooms, it'll show ~31 houses in the results, but tons of them have LESS than 5 bedrooms.

Did I setup this search incorrectly or is there a better way to create this?

#916196

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Michael

I looked at your custom WordPress Archive and at face value it looks to be correctly set up.

I tried to reproduce the problem on a test site to see if there was an issue using custom display values for the filters in an archive, but found none.

Do you have a staging site where I could do some simple testing? This looks to be a production site.

Let me mark your next reply as private in case you do you one that you can share credentials for.

#916442
#916522

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Michael

I've taken a duplicate of the site. I'll install it now and take a closer look at the filtering issue and get back to you.

#916588

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Michael

I installed the local copy of your site and couldn't identify a problem with your archive, so I started over and rebuilt an archive and found that it worked as expected.

So I did the same on your live site, created a new archive which reproduces yours.

I tested it and it appears to work fine. I can't account for what the glitch in the archive you created is.

All that remains is to add back the styling for the filter controls. Mine is a simple list of controls, I thought it preferable to leave that live (and working) rather than the archive which isn't working correctly but has the styled filter forms, I hope that's okay.

#917103

thanks! got the filters re-styled and looks to be working