Displaying Infusionsoft Contact Field Values in WordPress Posts and Pages
There are instances you need to display the contact field values in your pages and posts. Here some instances you want to use this feature:
- After signing-up a web form, you want to display the first name in the thank you page so customers can see a more personalized thank you page.
- You are running a promotion where customers receive a personalized coupon after signing-up. You wanted to display the auto-generated coupon-code in a thank you page so they can copy the code immediately without opening their emails.
- You are running an affiliate program and you wanted customers to get the affiliate link instantly after sign up.
You can do all these without coding with InfusedWoo. You only need to insert a shortcode to your wordpress post and page and it will display the contact field values.
Requirements
So that the shortcodes below will work, please ensure that:
a. InfusedWoo is installed and
b. Contact is logged-in in wordpress or Contact Information is passed to the web-page from a web form or via automation link.
Displaying Built-in Contact Fields
To display built-in contact fields like First Name, Last Name, Email, use this shortcode:
[iw_inf_contact_field_val field="{field_name}"]
Where you replace the {field_name} with the following available built-in fields:
AccountId Address1Type Address2Street1 Address2Street2 Address2Type Address3Street1 Address3Street2 Address3Type AffId AffCode Anniversary AssistantName AssistantPhone BillingInformation Birthday City City2 City3 Company CompanyID ContactNotes ContactType Country Country2 Country3 CreatedBy DateCreated |
EmailAddress2 EmailAddress3 Fax1 Fax1Type Fax2 Fax2Type FirstName Groups Id JobTitle LastName LastUpdated LastUpdatedBy LeadSourceId Leadsource MiddleName Nickname OwnerID Password Phone1 Phone1Ext Phone1Type Phone2 Phone2Ext Phone2Type Phone3 |
Phone3Ext Phone3Type Phone4 Phone4Ext Phone4Type Phone5 Phone5Ext Phone5Type PostalCode PostalCode2 PostalCode3 ReferralCode SpouseName State State2 State3 StreetAddress1 StreetAddress2 Suffix Title Username Validated Website ZipFour1 ZipFour2 ZipFour3 |
Displaying Custom Contact Fields
In infusionsoft, you can create custom fields and in the same way, you can use the same shortcode to display this in a wordpress post or page:
[iw_inf_contact_field_val field="_{field_name}"]
Please note however that there is an underscore before the field name: _{field_name}.
To get the field name of the custom field, you have to find this inside infusionsoft:
Go to Admin -> Settings
Then below Custom Fields, click “Go” button:
Then click on “View the field database names (for the API)”
A pop-up window will open and you can pull the field name of the custom field under the Database Name column.