Skip Navigation

[Resolved] Shortcode for taxonomists.

This support ticket is created 7 years, 4 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Bochnacki 7 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#550684

In reference to the thread: https://toolset.com/forums/topic/product-update-post-meta/page/2/#post-550674
How to write the correct shortcode for taxonomy? Taxonomy has the name "Payments" and the options are "inhome", "featured" and "intop".

#550692

Dear Bochnacki,

I assume you are going to do this:
display the terms of taxonomy "Payment" which are assigned to current post
You can use Views shortcode [wpv-post-taxonomy]
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy

For example:
[wpv-post-taxonomy type="payment" separator=", " format="link" show="name" order="asc"]

#550991

Sorry, wrong question I asked. I was referring to the conditional use of taxonomy.
I have already found a solution.

[wpv-conditional if="( has_term('term-slug', 'taxonomy', null) eq '1' )" ]
.... 
[/wpv-conditional]

And I need to register the has_term function in Toolset -> Settings -> Front End Content -> Functions inside conditional evaluation.

Thanks 🙂