Skip Navigation

[Resolved] failed trying to build an advanced search as described on the support site

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
- 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 2 voices.

Last updated by andresB-4 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#563403
no-advanced-search.jpg

I am trying to: create an advanced product search

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

I expected to see: the advanced search fields and results

Instead, I got: nothing... In my first attempt I was able to create the multiple fields form but the results were not working. Now, I can't even show the multiple fields form

#563457

Dear Andres,

Thanks for the details, I checked it in your website, here is what I found
1) The problem page:
hidden link
is using layout "Nuevos enfoques del derecho aeronáutico y espacial 1":
hidden link
I tried to edit above layout, but get below JS error:
Uncaught SyntaxError: Unexpected token

2) So I create another simple layout "test layout", with only one post content cell:
hidden link
assign it to the page "Busqueda avanzada"

See the result:
hidden link

For the JS error of step 1), it might be a compatibility problem, please check these:
deactivate other plugins and switch to wordpress default theme, and test again

#563584
sidebar-search-result.jpg
advanced-search-result.jpg

Hi Luo Yoang,
Thanks for your answer! The issue is that the search is not working.
You can try this:
In the field called "Autor" you can try search the word "Barra". The search result is going to be 0.
If you enter the same search in the generic search box on the sidebar, you will get 1 answer.
For some reason I can't find why the search won't work in this advanced search form. I followed all the instructions in the tutorial, but it won't work.
I've been trying several things, but nothing worked.
Hope you can help me with this.

#564065

It is a new question, in your case, I have modified the view:
hidden link
in section "Filtro de consulta", modify the custom field filter from:
Autor es un/a cadena igual a URL_PARAM(autor)
To:
Autor es un/a cadena como URL_PARAM(autor)

Use the comparison "LIKE", see our document:
https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/
LIKE
Single value
Checks if the custom field value is similar to the compare value, using MySQL LIKE operator

#564251

You rock! Thanks a lot!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.