Skip Navigation

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

This support ticket is created 3 years, 2 months ago. 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)

This topic contains 6 replies, has 2 voices.

Last updated by larryB-3 3 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#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: English (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: English (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: English (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.