Skip Navigation

[Resolved] Reset taxonomy value when doing search again in the search result's page

This support ticket is created 5 years, 3 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 1 reply, has 2 voices.

Last updated by Nigel 5 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1343757
image1.PNG
image2.PNG

Tell us what you are trying to do?
- Hi guys I replaced custom fields filter to taxonomy
but seems that taxonomy filter doesn't have an equivalent filter same as custom fields feature where you can filter based
on url strings
- also just for your information, I did this btw to avoid having too much queries loading on the database which is showing to be effective now and not encountering 503 error/database error again.

- I'm currently using checkbox to display or filter the data,
the first search is working properly, but when you try to search again and unselect those previous item/s
they will still be showing on the results afterwards. I have checked the url and the datas are still there

compared to custom fields, when you unselect them, the url/permalink will override/reset when u searched again
is there a way we can achieve this too on taxonomy filter?

you can also test it too,
1. select any option on the checkbox
2. once youve redirected to the result's page, check if the results are correct
3. unselect the item you chose on the multi checkbox option and select another item
4. check the results (the first item selected should not show anymore - this is our goal)

Thanks! 🙂

Is there any documentation that you are following?
none so far

Is there a similar example that we can see?
none so far

What is the link to your site?
hidden link

#1343865

Nigel
Supporter

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

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

recording.gif

That's not what you should expect to see.

I just created a simple test of the same, with a taxonomy filter displayed as checkboxes and which redirects to another page for the results, where the filters can be updated.

You can see the results in the recording.

Updating the filters updates the results as expected.

This was all with default settings.

If you have added any kind of customisation I suggest you create a new View that does the minimum required with the default settings and confirm that it works, and then customise that View as required, paying attention to whether the changes you introduce break the functionality.