Usage:
This shortcode will display any of your ActiveCampaign contact record fields of the current logged in contact.
This shortcode does NOT support conditional branching with [ELSE_contact].
Shortcode nesting is NOT supported.
Important notice:
Parameters:
field | Specifies the name of an ActiveCampaign contact record field to display. See screenshot above, how to deal with custom fields. Standard fields can be: id, email, first_name, last_name, phone. Default: none. Required: yes. |
type | If your ordered field needs a special treatment, e.g. date, number or currency choose from date, number or currency. Default: none. Required: no. |
format | The desired format for the ordered field e.g. “%i” for type currency or “%A” for type date. Default: 0. Required: no. Optional if type is set to date or currency. |
default | The default value to display if the ordered field has no value in the ActiveCampaign contact record of the logged in contact. Default: none. Required: no. |
callback | Callback function to be called to process the value of the field provided in the ‘field’ parameter. Default: none. Required: no. |
decimals | How many decimals do you want to display. Only if type is set to number. Default: 0. Required: no. |
dec_point | Decimal sign. Only if type is set to number Default: . (DOT). Required: no. |
thousands_sep | Thousands separator. Only if type is set to number. Default: , (COMMA). Required: no. |
locale | Set your locale e.g. en_US, en_UK, de_DE to set the moneytary locale to display fields of type currency. Default: Your WordPress locale based on your blog settings e.g. en_US. Required: no. |
Example:
[mbr_contact field='email'] [mbr_contact field='my_custom_field'] [mbr_contact field='birthday' type='date' format='%m/%d/%y'] [mbr_contact field='budget' type='currency' format='%i' locale='en_US'] [mbr_contact field='anynumber' decimals='5' dec_point=',' thousands_sep='.']
Alternatively, this shortcode can also be used in a shorter form:
[mbr_db_email] [mbr_db_id] [mbr_db_first_name] [mbr_db_last_name] [mbr_db_my_custom_field]
API:
There is currently no ActiveMember360 API function equivalent for this shortcode.