Skip Navigation

[Resolved] Add Taxonomy to Widget

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by suzyo 10 months, 3 weeks ago.

Assigned support staff: Waqar.

Author
Posts
#2266943

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

#2268103

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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

#2269567

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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>

#2270915

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!

#2271079

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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>

#2271683

LOL! Thank you so much!

#2271685

My issue is resolved now. Thank you!