To show first name you’d use:
To show first name and last name with one space between them you’d use:
[memb_contact fields="firstname,lastname" separator=" "]
To show last name, you’d use:
[memb_contact fields="lastname" ]
To show email, you’d use:
[memb_contact fields="email" ]
To show phone number, you’d use:
[memb_contact fields="phone" ]
Creating and showing custom field data using the shortcode
ActiveCampaign offers first name, last name, email and phone as default fields but you can create unlimited custom fields and organize them by groups. For example, let’s say you want to collect information related to birthday. You’d create a custom field for “Birthday” in ActiveCampaign.
You can also check out the official documentation on how to create custom field in ActiveCampaign.
Once the custom field is created and you want to show the data from that field for your user, you’d use the field name of that particular field.
The easiest way to find the field names is to open a user in WordPress and scroll down until you see the Memberium data (screenshot below)
Then you’ll use the names without the % signs. For example, “email” “firstname” and “textareatest” would all be valid field names.
As per the above screenshot, to show data from “Nickname” custom field, you’d use the shortcode like this:
[memb_contact fields="nickname" ]
Here’s one more example showing this shortcode fetch the firstname from contact’s record.
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]