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?
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
Thank you! almost there, instead of display the url, can you display the formatted value?
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?
Yes, the option text instead of the the URL.
Instead of "idc-straight-bourbon-whiskey" I would prefer to see "IDC Straight Bourbon Whiskey"
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
I will check into this at a later time. Thank you!!