Skip Navigation

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

This support ticket is created 2 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 2 replies, has 2 voices.

Last updated by Peter 2 years, 5 months ago.

Assigned support staff: 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!