Skip Navigation

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

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.

This topic contains 4 respuestas, has 2 mensajes.

Last updated by andresB-4 hace 4 años.

Assigned support staff: Luo Yang.

Autor
Mensajes
#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

Luo Yang
Supporter

Languages: Inglés (English ) Chino simplificado (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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

Luo Yang
Supporter

Languages: Inglés (English ) Chino simplificado (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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!