Skip Navigation

[Closed] Conditional shortcode in Fields and Text block

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.

Our next available supporter will start replying to tickets in about 7.68 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 11 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2520749

Tell us what you are trying to do?
Insert conditional shortcode into a Fields and Text block

I found another forum post that says this should work. However when I try the shortcode does not work and instead displays the actual shortcode. Can you please confirm if conditional shortcode is suppose to work in Fields and Text block and if it does why is it displaying the actual shortcode instead of outputting it? And how can I fix this please? Thank you.

https://toolset.com/forums/topic/how-to-format-conditional-statements-inside-of-a-fields-and-text-block/
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153493

#2522019

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

You need to add the conditional shortcode after some content inside the Fields and text block such as:

test [wpv-conditional if=" NOT ( empty( '[wpv-post-title ]') ) " ][/wpv-conditional]

That should work, but please consider that currently we have an issue that the single line fields do not show correctly in the Fields and text block which is reported to the development team.

Thanks.

The topic ‘[Closed] Conditional shortcode in Fields and Text block’ is closed to new replies.