i4w_showbefore_tag
Usage
This shortcode conditionally returns content depending on whether a certain number of days/weeks have NOT YET passed since a tag was assigned to a contact.
[ELSE_showbefore_tag] conditional branching is supported.
Shortcode nesting is supported: [i4w_showbefore_tag1] thru [i4w_showbefore_tag19]
[ELSE_showbefore_tag1] thru [ELSE_showbefore_tag19]
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| tagid | The tag ID assigned to the current, logged in contact. | none | Yes |
| days | The number of days upon which to base the decision. | none | Yes, either days or weeks must be used |
| weeks | The number of weeks upon which to base the decision. | none | Yes, either days or weeks must be used |
Example
Shortcode
[i4w_showbefore_tag tagid='1234' days='14']
Display this if less than 14 days have passed…
[ELSE_showbefore_tag]
Otherwise, display this…
[/i4w_showbefore_tag]
Shortcode
[i4w_showbefore_tag tagid='1234' weeks='2']
Display this if less than 2 weeks have passed…
[ELSE_showbefore_tag]
Otherwise, display this…
[/i4w_showbefore_tag]
Shortcode
[i4w_showbefore_tag tagid='1234' days='3' weeks='2']
Display this if less than 17 days (2 weeks + 3 days) have passed…
[ELSE_showbefore_tag]
Otherwise, display this…
[/i4w_showbefore_tag]