Conditional logic within shortcode
-
Hi,
Is it possible to use conditional logic with the [pods] shortcode?
I want a way to only display the field value if there is content in it. Ie. if the field is null/empty, don’t display anything.
Something like this was my attempt:
[pods name=”bank_account” id=”{{ post.id }}” where=”standard_interest_rate!=null”]{@standard_interest_rate}%[/pods]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional logic within shortcode’ is closed to new replies.