Skip Navigation

[Resolved] Some shortcodes are not firing inside conditional statements

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

Problem:
Some shortcodes are not firing inside conditional statements

Solution:
I've edited the block content as HTML and saved the block and then back to visual block mode. I can see its working fine now.

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/some-shortcodes-are-not-firing-inside-conditional-statements/#post-1266593

Relevant Documentation:

This support ticket is created 5 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by codyK 5 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1266203
Screen Shot 2019-06-11 at 11.10.25 PM.png
Screen Shot 2019-06-11 at 11.10.20 PM.png

I am trying to: Display information about a custom post type (Race Event) using custom fields. I use a content template to lay out how the information is displayed. I used conditionals in the template to test whether the field is filled out or not. Some of these conditional statements work, but others are having an issue where it shows the actual shortcode typed out on the front-end.

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

I expected to see: I expected that these shortcodes would display the information displayed in the custom field.

Instead, I got: an error.

This issue was not happening a short time ago. I have been messing with it but can't seem to figure out what I am missing. Screenshots included of the elements that are having issues.

Thank you for a great product!

#1266593

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please check now:
=> hidden link
=> hidden link

I've edited the block content as HTML and saved the block and then back to visual block mode. I can see its working fine now.

#1266981

My issue is resolved now. Thank you!