Skip Navigation

[Resuelto] Display selected search filters as a string in breadcrumbs

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
Display selected search filters as a string in breadcrumbs

Solution:
You can use the view's shortcode [wpv-search-term] in order to display the value of URL param of selected view's filter:

For example:

[wpv-search-term param='wpv-known-as']

You can find the proposed solution, in this case with the following reply:
https://toolset.com/forums/topic/display-selected-search-filters-as-a-string-in-breadcrumbs/#post-1157737

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term

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

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Ido Angel hace 6 años.

Asistido por: Minesh.

Autor
Mensajes
#1156861

Strangest thing:
I am trying to show a string of the search terms at the top of the results in a view. Something like: you searched for a writer who won the government award" ("writer" and " the government award" are terms in taxonomies "known as" and "awards", respectfully).
I thought this would be easy:
I createded a view within a view. The parent view is the sarch view, and the child view is the breadcrumbs view. The breadcrumbs view shows "knows as" and "awards" to, each filtered by the URL parameter (wpv-known-as and wpv-awards). But even though I have just one term selected and visible in the search results URL (writer), I get ALL results of "known as" taxonomies from the filtered entries. Mmeaning, if an entry is both writer and poet, even if the URL shows I searched only for writer.
What am I doing wrong?

#1157571

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

First of all - After checking to debug information you shared with us, I found that you are using outdated Toolset plugins. We always recommend running your site with latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest official released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Once you update the Toolset plugin, Could you please share problem URL and access details with test case example where exactly you want to display what.

I have set the next reply to private which means only you and I have access to it.

#1157587

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - I'm checking the link you shared: enlace oculto

But I do not see any filter or where exactly you want to display the links? Could you please share your exact requirement with a test case example that will help me to understand your issue as well as to guide you to the right direction.

I have set the next reply to private which means only you and I have access to it.

#1157737

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - I dont think it needs a view to display the selected taxonomy terms.

I have changed the code as given under:

[wpv-conditional if="( '[wpv-search-term param='wpv-known-as']' ne '' )"]
 you searched for a [wpv-search-term param='wpv-known-as']  who won the government award   [wpv-search-term param='wpv-awards']. 
[/wpv-conditional]

- You can adjust the avove code as needed.

#1157786

My issue is resolved now. Thank you Minesh!