Skip Navigation

[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, 2 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
- 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: ,

This topic contains 6 respuestas, has 2 mensajes.

Last updated by larryB-3 hace 3 años, 2 meses.

Assisted by: Minesh.

Autor
Mensajes
#1965971

I've got a search up and running of a custom post type here: hidden link

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

Languages: Inglés (English )

Timezone: 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

Languages: Inglés (English )

Timezone: 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

Languages: Inglés (English )

Timezone: 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!!

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