Skip Navigation

[Resolved] layout is showing short-codes instead of the actual content

This thread is resolved. Here is a description of the problem and solution.

Problem: I am seeing shortcodes written out to the page instead of the correct shortcode content.

Solution: Break up conditionals into separate templates if necessary, or use a Visual Editor cell instead of a Content Template.

Relevant Documentation: https://toolset.com/errata/shortcodes-in-conditionally-displayed-content-may-not-be-executed-on-the-front-end/
https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/

This support ticket is created 4 years, 12 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by hadiN 4 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1432605

Hello Toolset Team,
I am trying to out put a layout for a single page

Link to a page where the issue can be seen: hidden link

I expected to see: hidden link

Can you help me with that ASAP please , i cant seem to find what is the problem.
I've upgraded php version, checked php extensions , re-installed plugin.

#1433007
#1433969
#1436625
Screen Shot 2020-01-02 at 2.14.57 PM.png

Okay thank you. I believe you are seeing this issue:
https://toolset.com/errata/shortcodes-in-conditionally-displayed-content-may-not-be-executed-on-the-front-end/
It is also mentioned here: https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/
Sometimes long conditional content in a Content Template breaks shortcodes. To work around the problem, I have moved the text into a Visual Editor cell in the Layout instead of using a Content Template block. Please see the screenshot here. Let me know if the issue is not resolved, and I can take a closer look.

#1438237

My issue is resolved now. Thank you!