[memb_referral_contact]
This Applies to
Summary
This shortcode pulls up any piece of information (contact details, custom fields, etc.) from the user’s affiliate’s Infusionsoft contact record. Please note that in order for this shortcode to work, both the affiliate and referred user must have a WordPress account.
Shortcode Examples
To show first name you would use:
[memb_referral_contact fields=FirstName]
To show first name and last name with one space between them you would use:
[memb_referral_contact fields=FirstName,LastName separator=" "]
Contact Record Field Examples:
[memb_referral_contact fields=FirstName]
[memb_referral_contact fields=LastName]
[memb_referral_contact fields=Email]
[memb_referral_contact fields=Phone1]
[memb_referral_contact fields=StreetAddress1]
[memb_referral_contact fields=City]
[memb_referral_contact fields=State]
[memb_referral_contact fields=Country]
[memb_referral_contact fields=Company]
[memb_referral_contact fields=JobTitle]
[memb_referral_contact fields=Username]
[memb_referral_contact fields=Password]
[memb_referral_contact fields=Website]
[memb_referral_contact fields=Id]
How to list an Infusionsoft custom field in a shortcode
Usage: How to list custom field named ‘X’:
[memb_referral_contact fields=_X]
Usage: How to list custom field named ‘Price-Range’:
[memb_referral_contact fields=_Price-Range]
Examples of Post Processing:
[memb_referral_contact fields=firstname txtfmt=strtolower,ucwords]
[memb_referral_contact fields=firstname,lastname txtfmt=strtolower,ucfirst]
[memb_referral_contact fields=firstname,lastname txtfmt=strtolower,ucwords]
[memb_referral_contact fields=firstname txtfmt=strtoupper,str_rot13]
[memb_referral_contact fields=FirstName,LastName separator=" " txtfmt=ucfirst]
[memb_referral_contact fields=FirstName,LastName separator=" " txtfmt=sanitize_title]
[memb_referral_contact fields=FirstName,LastName separator=" " txtfmt=sanitize_title,strtoupper]
[memb_referral_contact fields=FirstName,LastName separator=" " txtfmt=sanitize_title,md5]
Shortcode Parameters
capture: Capture the output of the shortcode and route it to a variable for later use. (?)
date_format: The formatting to use for your date field. You can read more about the date formatting options here.
fields: A comma separated list of fields from the Contact table. You can find a list of fields and instructions on how to find the names of your custom fields here.
separator: The string to use to separate the list of fields when output. The default separator is a single space.
txtfmt: A comma separated list of text processing functions to be used to post process the contact fields. (?)
Shortcode Attributes
Additional Information
For a full list of standard contact fields you can refer to these tables: https://developer.infusionsoft.com/docs/table-schema/.
For a full list of custom contact fields, you can find this list in your application. Fields that you have marked in the Sync Optimizations to ignore, will not be available.