Usage:

This shortcode returns an editable ajax table consisting of a segment of your ActiveCampaign contacts, selected by tag ID/names.

Through this shortcode, both regular and custom fields can be edited. The changes are immediately posted both locally, to your WordPress site, and to your ActiveCampaign application. Both display fields and edit fields can be defined. In additional, automations can be initiated for individual contacts in the list.

This shortcode does NOT supports conditional branching with [ELSE_member_dir].
Shortcode nesting is NOT supported.

Parameters:

Tag ID’s vs. tag names:
We encourage the use of tag ID’s over tag names. Unless a tag is deleted, its tag ID can be considered persistent. Tag names, on the other hand, can be changed any time. Using a tag name that has been changed can lead your shortcode, hook or module to no longer work as expected.
Due to current ActiveCampaign API limitations, this shortcode is not able to select multiple contacts if they are not assigned to a list. We therefore recommend that, if you have not already done so, you should create a “master list” to which you will have assigned all contacts in your ActiveCampaign account and to ensure that all new contacts be routinely assigned to this “master list” as they are added to your ActiveCampaign account.
editable This parameter specifies whether the table should be editable or not.
Value may be ‘yes’ or ‘no’.
Default: ‘no’.
Required: no.
tag One tag ID/tag name, to select the segments of your list to be displayed.
Default: none.
Required: yes, if list_id is not given.
list_id One list ID, to select the segments of your list to be displayed. When using list_id no custom contact fields will be available in the table.
Default: none.
Required: yes, if no tag is given.
fields The ActiveCampaign fields to display.
Default: none.
Required: yes, at least one.
edit_fields Defines the fields that can be edited.
Default: none.
Required: no.
edit_labels Specifies the labels used for the edit form.
Default: none.
Required: no.
only_contact_id A comma separated list of ActiveCampaign contact ID’s of members allowed to see the generated list. If used, only those members person will be able to see the list. If not used, anyone can see it.
Default: none.
Required: no.
headers May be ‘yes’ or ‘no’, to define whether a header is displayed or not.
Default: ‘yes’.
Required: no.
header_labels Column headers to be used instead of field names.
Default: none.
Required: no.
avatar_header Specify a column header for the avatar column.
Default: none.
Required: no.
avatar_field Specifies an ActiveCampaign field name where alternate avatar URL’s are stored.
Default: none.
Required: no.
avatar_size Defines the size of the avatar, limited to 1 x 1 minimum and 128 x 128 maximum. If no default is provided, the shortcode falls back on the global Gravator size.
Default: none.
Required: no.
avatar_default Defines which gravatar to use when the user doesn’t have one registered.
Default: ‘mm’ (Mystery Man).
Required: no.
avatar_alt Determines which “alt” text is going to used in the image link.
Default: none.
Required: no.
only_self_edit Only logged in contacts can edit their own entry if listed. Possible values: ‘yes’ or ‘no’.
Default:’ no’.
Required: no.
page_length Specify how many entries should be listed per page.
Default: 10.
Required: no.
automations If ‘yes’, specifies that automations can executed, or, if a list of automation ID’s is provided, limits the automations that may be started. If ‘no’ is specified, a list of automations will not be made available to the edit form.
Default: ‘no’.
Required: no.

Example:

[mbr_member_dir tag='123' fields='first_name,last_name,phone,my_custom_field']

[mbr_member_dir tag='234' list_id='2' fields='first_name,last_name,phone,my_custom_field']

[mbr_member_dir tag='My Tag Name' list_id='2' fields='first_name,last_name,phone,my_custom_field']

[mbr_member_dir tag='123' fields='first_name,last_name,phone,my_custom_field']

[mbr_member_dir tag='345' fields='avatar,first_name,last_name,phone,my_custom_field' edit_fields='first_name,last_name,phone,my_custom_field']

[mbr_member_dir tag='My Tag Name' fields='avatar,first_name,last_name,phone,my_custom_field' automations='yes']

[mbr_member_dir tag='234' fields='avatar,first_name,last_name,phone,my_custom_field' automations='123,234,345']

[mbr_member_dir tag='123' fields='avatar,first_name,last_name,phone,my_custom_field' avatar_field='my_custom_field_2' avatar_size='48' avatar_default='mm']

[mbr_member_dir tag='My Tag Name' fields='avatar,first_name,last_name,phone,my_custom_field' header_labels=',Nombre,Apellido,Telefono,Otro Campo' avatar_field='my_custom_field_2' avatar_size='48' avatar_default='mm']

API:

There is currently no ActiveMember360 API function equivalent for this shortcode.