Skip Navigation

[Resuelto] Display current page field in filtered search dropdown

This support ticket is created hace 7 años, 3 meses. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 2 respuestas, has 2 mensajes.

Last updated by Daniella hace 7 años, 2 meses.

Assisted by: Beda.

Autor
Mensajes
#482932

I am trying to: display the correct Field name in the search dropdown fields depending on the page one is on.

I visited this URL: hidden link

In the URL above, there is a search on the left sidebar. Is it possible to have "Gold" preselected under Materials if one is on the Gold page? Same goes for any of the others. So if one is on the Bangle Style, Bangle is shown in the Style dropdown already selected.
Thanks!

#483180

The thing is, that is a Search made by Views, and it will call this sort of URL when you submit it:
search-results/?wpvgroup=0&wpv-material=gold&wpv-style=0&wpv-color=0&wpv-origin=0&wpv-rarity=0&wpv_filter_submit=Submit

You are not on a Search Results page when you first view it, but on an archive page:
/shop/gold/

This is why that is not possible.

The View search is thought to refine the Results or present a Results page, as such.
If you where to call the URL with the Search Parameters as I posted above, the value is selected by default, but not on the Archive page.

#483701

Okay, thank you.

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