Skip Navigation

[Resolved] How to display wpv-conditional with multiple apostrophes?

This support ticket is created 4 years, 2 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)


This topic contains 2 replies, has 2 voices.

Last updated by Peter 4 years, 2 months ago.

Assisted by: Shane.


Tell us what you are trying to do?
I want to set a condition:
[wpv-conditional if="( '[wpv-post-taxonomy type="category" format="slug"]' ne '' )"]

The condition is a little bit complex, so I have to use multiple apostrophes in it. It is breaking the code, so the front-end is also broken. How can I display this shortcode without syntax errors?

Is there any documentation that you are following?
Yes, I have read every documentation about it, but didn't find any solution.

What is the link to your site?
hidden link

The header of the articles is broken, because of the wrong syntax in the condition.



Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Peter,

Thank you for getting in touch.

In a case like this you would add it like below.

[wpv-conditional if="( '[wpv-post-taxonomy type='category' format='slug']' ne '' )"]

Please try this and let me know if it helps.


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.