Navigation überspringen

[Closed] Conditional shortcode in Fields and Text block

This support ticket is created vor 3 years, 5 months. 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.

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Christopher Amirian vor 3 years, 5 months.

Assistiert von: Christopher Amirian.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (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.