I am trying to:
Use toolset conditional statements within an Avada "Global" container
Link to a page where the issue can be seen:
hidden link
I expected to see:
The conditional statements to work regardless of being in the global container.
Instead, I got:
Please see the attached screen grab i did to see the problem, this explains what is happening:
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
Different page builders and editors use different approaches for setting the current page/post scope. This is why at times, nested or complex shortcodes are not rendered properly.
A workaround in such cases, is it to place these conditional statements or other Toolset shortcodes inside a Toolset content template and then load that template, inside the other page builder environments:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body
[wpv-post-body view_template="template name" suppress_filters="true"]
regards,
Waqar
Is there no easier way to do it? Seems like there is a much easier fix. I don't use content templates, strictly "views"
I'm afraid, I can't think of any other alternative.
In this suggested approach, you're not switching to content templates, as that template will not be assigned to any post or page.
You'll use the template to render the conditional statement shortcode's output and then show it in Avada's global container.