Skip Navigation

[Resolved] Custom Search Form in Archive Stops Working After Changes Made

This support ticket is created 5 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 16 replies, has 3 voices.

Last updated by Beda 5 years, 7 months ago.

Assisted by: Beda.

Author
Posts
#1268863

Hi Christian and Beda

Thanks for all the work you've been doing on this one.

The strange thing is that my site is built on the Travel Destinations reference site. So all I have done is make a duplicate of the existing Tours archive that has the custom search at the top and changed the usage and adapted the filters to be custom fields in my post type then added some styling.

That archive has both the post type and a taxonomy (tour Type) as the use for the archive and has the taxonomy in the search form. So I was only following how things were done in the reference site 🙂

I've just tried making a change to the Tour archive - and it's the same issue. The form stops working after a change is made and the page refreshed at the front end.

But as you say, once the site is in development, changes won't be being made so the problem shouldn't occur in the first place,

But it's an interesting one to have brought to light that can be explored at someone's leisure when caching is being worked on - either within Toolset or elsewhere.

For now though, I will say Thank You once again for all your efforts and move on to the next challenge in this project 🙂

#1268865

See above

Thanks to Christian and Beda for all their help. I think it's given all our brains a thorough workout!

#1268899

The original Travel Destination site uses one taxonomy filter, that does not apply always, that is true, however, it's also displaying on the same archive a Post type, to which that filter can apply.
Your archive did not anymore include that Post Type in the query so the filter becomes obsolete.

I am relatively sure this issue that remains with the changes breaking things on the front end, can you replicate this for me on the testing site I provided?

That would help to confirm it's really just a cache issue.
The site can be accessed here:
https://toolset.com/forums/topic/custom-search-form-in-archive-stops-working-after-changes-made/#post-1267663