[memb_contact]
This Applies to
OTHER DOCS Available
Shortcode Video
Summary
This shortcode pulls and displays any piece of information (contact details, custom fields, etc.) from the user’s Infusionsoft contact record.
Shortcode Examples
To show a user’s first name you would use:
[memb_contact fields=FirstName]
You can also pull in multiple fields and add a separator. This is useful for displaying things like First and Last name:
[memb_contact fields=FirstName,LastName separator=" "]
Contact Record Field Examples:
[memb_contact fields=FirstName]
[memb_contact fields=LastName]
[memb_contact fields=Email]
[memb_contact fields=Phone1]
[memb_contact fields=StreetAddress1]
[memb_contact fields=City]
[memb_contact fields=State]
[memb_contact fields=Country]
[memb_contact fields=Company]
[memb_contact fields=JobTitle]
[memb_contact fields=Username]
[memb_contact fields=Password]
[memb_contact fields=Website]
[memb_contact fields=Id]
How to list an Infusionsoft custom field in a shortcode
To list a custom field, you’ll use the database name (click here for details) with an underscore before it. Eg. _CustomField
Usage: How to list custom field named ‘CustomField’:
[memb_contact fields=_CustomField]
Usage: How to list custom field named ‘Custom Field Spaces’:
[memb_contact fields=_CustomFieldSpaces]
Note that a field’s database name may be slightly different than what you see on the contact record in Infusionsoft. What you’re seeing is called the label. You can find the database name by following these steps.
Examples of Post Processing:
Here are two examples of post processing. The first one will make all letters lowercase and then capitalize the first letter of each word. The second example will make all letters lowercase and only capitalize the first letter of the first word. For more functions you can use, visit this link.
[memb_contact fields=firstname txtfmt=strtolower,ucwords]
[memb_contact fields=firstname,lastname txtfmt=strtolower,ucfirst]
Shortcode Parameters
capture: Capture the output of the shortcode and route it to a variable for later use. (?)
contact_id: Allows you to specify the contact ID of the user to pull the data from. By default, the shortcode will pull from the currently logged in user’s record. Optional.
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 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 Infusionsoft application following these steps. Fields that you have marked in the Sync Optimizations to ignore, will not be available.
FAQ
Can I display custom fields using [memb_contact] shortcode?
Yes, you can display custom fields by adding an underscore before the name of the field. Example: [memb_contact fields=_CustomField]
Custom field is not being displayed, what can be the problem?
Please check if you’re using the correct database field name from Infusionsoft > Admin > Settings and click on “Go” button from Custom fields. Next, click on the link for “View the field database names” and verify if you’re using correct database field name for your custom field.
This [memb_contact] does not seem to be working, help!
The [memb_contact] shortcode will only work with a non-admin user having an Infusionsoft contact. We’d suggest you NOT to test this shortcode using an admin user. Also go to Memberium > Sync options > Contact fields and ensure that the field that you’re trying to display is NOT selected here, and if it is selected, then de-select the field and also go to Memberium > Start here and click on “Synchronize Infusionsoft” and test again.