Problem:
Find another way to write [wpv-conditional if="( '[wpv-attribute name='boxxy-description']' ne '' )"] that would not fail if boxxy-description contains a quote or single quote.
Solution:
It is not recommended to pass quotes or single quote in the shortcode attribute values.
The client has fixed it by custom codes, see details here:
https://toolset.com/forums/topic/using-attribute-tags-in-conditional-statements/#post-1278479
Relevant Documentation:
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: Asia/Hong_Kong (GMT+08:00)
This topic contains 3 replies, has 2 voices.
Last updated by 5 years, 6 months ago.
Assisted by: Luo Yang.