What's the code to add a Toolset taxonomy to a widget? I'm using
<div class="sidebar-post">
[wpv-taxonomy-field term_id='[term-id tax="campground-season"]
</div
which, obviously, doesn't work. Thanks!
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
The use of the "wpv-taxonomy-field" looks correct, but I'm not what "term-id" shortcode returns, as there is no built-in shortcode with this name.
Can you please share temporary admin login details, along with the link to the page where you're trying to use this widget? If you've registered "term-id" as a custom shortcode, please also share its code.
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
regards,
Waqar
Thank you for sharing these details.
The shortcode "wpv-taxonomy-field" is used for getting the term custom fields, but on your website, no term custom fields are being used.
I noticed that your website does have a custom taxonomy with slug "campground-season" and if you'd like to show its term in the sidebar, you can use the "wpv-post-taxonomy" shortcode:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy
<div class="sidebar-post">
[wpv-post-taxonomy type="campground-season"]
</div>
Hi, Waqar! Ugh, I don't know why I'm being so stupid.
'<div class="sidebar-post">
[wpv-post-taxonomy="campground-season"]
</div>'
prints nothing. WHAT am I doing wrong? Thank you!
Thanks for writing back and you can copy/paste the shortcode from my last reply:
( screenshot: hidden link )
<div class="sidebar-post">
[wpv-post-taxonomy type="campground-season"]
</div>
My issue is resolved now. Thank you!