Skip Navigation

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

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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Peter 1 year, 7 months ago.

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