Conditional placeholder in shortcodes
-
Hi
I have a custom location attribute
#_LATT{Contact person}
works fine in EM location pages
Can I use the attribute with a conditional wrap like this
{has_latt_contactperson}Contact: #_LATT{Contact person} {/has_latt_contactperson}
Can I also use this in a shortcode, like this:
[events_list_grouped mode=”monthly”]#_EVENTLINK – {has_latt_contactperson}Contact: #_LATT{Contact person} -{/has_latt_contactperson} #_EVENTDATES at #_EVENTTIMES
[/events_list_grouped]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conditional placeholder in shortcodes’ is closed to new replies.