Skip Navigation

[Resolved] Is there a way to obtain the ID from a custom taxonomy

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

This topic contains 1 reply, has 1 voice.

Last updated by miguelG-5 5 years, 5 months ago.

Author
Posts
#1124630

Hello

I'm trying to make a conditional link for different Custom catégories

<div class="row">
<div class="col-sm-12">
[wpv-conditional if="( '[wpv-taxonomy-id]' eq '14' )" debug="true"]<a href="/projets/?1=parc-naturel">[/wpv-conditional]
[wpv-conditional if="( '[wpv-taxonomy-id]' eq '15' )" debug="true"]<a href="/projets/?1=campus-et-ecole">[/wpv-conditional]

[wpv-post-taxonomy type="projet-cat" format="name"]
</a>
</div>

The debug "Original expression: ( '' = '14' )"

I guess the shortcode [wpv-taxonomy-id] isn't right for a custom category ?

Is there a way to obtain the ID from a custom taxonomy

Thanks

#1124691

This code won't work if I have more than one taxonomie.

Sorry for the inconvenance

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.