Skip Navigation

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

This support ticket is created 6 years, 1 month 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 6 years, 1 month 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"][/wpv-conditional]
[wpv-conditional if="( '[wpv-taxonomy-id]' eq '15' )" debug="true"]
[/wpv-conditional]

[wpv-post-taxonomy type="projet-cat" format="name"]

</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!