Saltar navegación

[Resuelto] Is there away to display the mutl-select terms used in the search for the output

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

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)

Etiquetado: ,

Este tema contiene 6 respuestas, tiene 2 mensajes.

Última actualización por larryB-3 hace 3 años, 10 meses.

Asistido por: Minesh.

Autor
Mensajes
#1965971

I've got a search up and running of a custom post type here: enlace oculto

I was wondering if someone clicks on say 2 spirits, 3 cities, etc.; is there a way to display XX results returned with this "xxxxx" search criteria where the XXXXX was the mutli-select options the user selected?

#1966239

Minesh
Supporter

Idiomas: Inglés (English )

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

Hello. Thank you for contacting the Toolset support.

We can able to display the selected options using the view's shortcode: [wpv-search-term]

For example:

[wpv-search-term param='your-url-param']

I'm not sure what other thing you want to display. Do you mean that you want to display the total count of selected options as well.

For instance, I selected 2 cities, you want to display:
2 cities with term X and Y is selected.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-214940

#1966611

Thank you! almost there, instead of display the url, can you display the formatted value?

#1966633

Minesh
Supporter

Idiomas: Inglés (English )

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

What you mean by formatted value?

Do you mean instead of option value - you want to display the option text?

#1966667

Yes, the option text instead of the the URL.

Instead of "idc-straight-bourbon-whiskey" I would prefer to see "IDC Straight Bourbon Whiskey"

#1966671

Minesh
Supporter

Idiomas: Inglés (English )

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

Ok - there is no direct way.

If your dropdown is of taxonomy dropdowns then you should use the solution mentioned as given with the following link:
- https://toolset.com/forums/topic/how-can-i-display-the-name-of-a-taxonomy-specified-in-the-url-by-its-slug/#post-393027

#1966675

I will check into this at a later time. Thank you!!