Usage:

This shortcode is designed to segment content on a page, post, excerpt or text widget by displaying the embedded content only to those subscribers whose memberships or Infusionsoft contact ID match the criteria passed as parameters. There are three variants, depending on the parameters used.

[ELSE_onlyfor] conditional branching is supported.

Shortcode nesting is supported:[i4w_onlyfor1] thru [i4w_onlyfor19]

[ELSE_onlyfor1] thru [ELSE_onlyfor19]

Parameters:

tagid One or more tag ID’s taken from Infusionsoft. If more than one is entered, please separate with commas.
Default: none.
Required: yes, if no contact ID’s are not passed.
contactid One or more contact ID’s taken from Infusionsoft. If more than one is entered, please separate with commas.
Default: none.
Required: yes, if tag ID’s are not passed.
excl_tagid One or more tag ID’s taken from Infusionsoft which, if passed, will exclude anyone with any of these tag ID’s, regardless of whether other criteria is met. If more than one is entered, please separate with commas.
Default: none.
Required: no.
require_all_tags Specfies whether ALL tags must be present in order to satisfy the “IF” condition.
Default: none.
Required: no.

Example:

Based on Infusionsoft tag ID:

Based on Infusionsoft tag ID and excluding some contact ID´s:

Based on Infusionsoft cumulative contact ID’s and tag ID´s:

Based on Infusionsoft cumulative contact ID’s and requiring ALLtag ID´s to be present:

Based on Infusionsoft contact ID and tag ID and excluding some contact ID’s and tag ID´s:

When nesting [i4w_onlyfor] or [i4w_hidefrom] shortcodes within one another, add a number to reflect the nesting level:

API:

To use this shortcode in your own PHP code, please use as follows:

Leave a Reply

Your email address will not be published. Required fields are marked *