Skip Navigation

[Resolved] Conditional isn't working for wpv-post-taxonomy…

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

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: Africa/Casablanca (GMT+01:00)

This topic contains 18 replies, has 2 voices.

Last updated by Jamal 4 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1576807

Hello and my apologies for the late reply as I do not work on Mondays.
Since Friday, I approached our 2nd Tier with details and the UpdraftPlus backup and I am still waiting for his suggestions. I'll get back to you as soon as we have any news.

#1577105

Hello,

Our 2nd Tier has found the cause of this issue related to HTML markup inside the term description. Check this screenshot hidden link
I tested this locally, and once we remove the HTML markup, the conditional shortcode works.

Please let me know if this works for you.

#1577867

That does work, yes. I am concerned though, as text alignment is a very common function of any WYSIWYG editor. If another content administrator creates their own series line in the future and they apply text alignment to the description it will still disappear, correct? Let me know if I'm missing something, but I'd say this solves the immediate problem without fixing the bug.

#1578667

I escalated this to our 2nd Tier and I'll get back to you when we have any feedback.

In the meantime, you can hook into terms creation/modification and strip any HTML tags from the description. Check the following pages:
- hidden link
- https://developer.wordpress.org/reference/hooks/create_term/
- https://developer.wordpress.org/reference/hooks/edit_term/

I remain at your disposal.