I searched your support extensively but cannot find a solution to this:
I have a parametric search results page that is working well but I need to add a header that displays something like this:
"Showing jobs in Maine, Home Health Aide (5 results)"
I am able to display the number of results before the loop using the [wpv-items-count]
How can I display the custom taxonomy of the State and the custom taxonomy of the job title?
Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hi Jason,
Thank you for contacting our support forum.
You should be able to achieve this with the following shortcode.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term
Its able to get what you searched for in the url and all you need to do is let the shortcode know which URL parameter it should get the searched value for.
Please let me know if this helps.
Thanks,
Shane
Thank you! That worked great. I do have one more question now that I have the Custom Taxonomy being pulled from the URL parameter.
When all results are being displayed for a certain taxonomy, the URL parameter looks like this:
?wpv-profession-type=0
How can I make that 0 instead be:
?wpv-profession-type=all-professions
So that the search header would say
"Showing Results for All Professions"
Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hi Jason,
Unfortunately with these you will need to write some custom shortcode to get the information.
For the Taxonomy you should be able to get the taxonomy term name by writing a custom code using the slug to get the name however with the custom field value of 0, it would be possible.
Please let me know if this helps.
Thanks,
Shane