Skip Navigation

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

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.

Our next available supporter will start replying to tickets in about 5.29 hours from now. 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Peter 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1506795

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.

#1507193

Shane
Supporter

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.
Thanks,
Shane

#1507579

My issue is resolved now. Thank you!