Skip to main content

i4w_member_dir

Usage

This shortcode returns an ajax table consisting of a segment of your Keap contacts, selected by tag ID and/or company ID. Through this shortcode, both regular and custom contact fields can be viewed.

[ELSE_member_dir] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
companyidThis parameter can take one of three possible values: 'no', 'yes' or '123' (where '123' is a specific, existing CompanyId). If 'no' is specified, the company ID will not be taken into account during the query. If 'yes' is given, the current user's company ID, if available, will be used. If the user doesn't have a company ID, no member directory will be returned. Finally, if a specific company ID is given, a member directory will be returned using that company ID.noNo
tagidOne or more comma separated (CSV) tag IDs, to select the segments of your list to be displayed.NoneYes
fieldsThe Keap fields to display. Please use the identical spelling as documented in the API.NoneYes
header_labelsColumn headers to be used instead of field names.NoneNo
onlyidA comma separated list of Keap contact IDs of members allowed to see the generated list. If used, only those members will be able to see the list. If not used, anyone can see it.NoneNo
headersMay be 'y' or 'n', to define whether a table header is displayed or not.yNo
pagelengthSpecifies the number of items displayed per page.10No
sort_fieldThe column to sort by. Starting with 0 for the first column.0No
sort_orderThe sort order. asc for ascending, desc for descending.ascNo
avatar_fieldSpecifies a Keap field name (NOT custom field) where alternate avatar URLs are stored.NoneNo
avatar_headerSpecify a column header for the avatar column.NoneNo
avatar_sizeDefines the size of the avatar, limited to 1x1 minimum and 128x128 maximum. If no default is provided, the shortcode falls back on the global Gravatar size.NoneNo
avatar_defaultDefines which gravatar to use when the user doesn't have one registered.mmNo
avatar_altDetermines which "alt" text is going to used in the image link.NoneNo

Example

Shortcode
[i4w_member_dir tagid='123,234,345' fields='FirstName,LastName,Phone1']
Shortcode
[i4w_member_dir tagid='123,234,345' companyid='no' fields='FirstName,LastName,Phone1']
Shortcode
[i4w_member_dir tagid='123,234,345' companyid='yes' fields='FirstName,LastName,Phone1']
Shortcode
[i4w_member_dir tagid='123,234,345' companyid='123' fields='FirstName,LastName,Phone1']
Shortcode
[i4w_member_dir tagid='123,234,345' fields='avatar,FirstName,LastName,Phone1']
Shortcode
[i4w_member_dir tagid='123,234,345' fields='avatar,FirstName,LastName,Phone1' avatar_field='Address3Street' avatar_size='48' avatar_default='mm']
Shortcode
[i4w_member_dir tagid='123,234,345' fields='avatar,FirstName,LastName,Phone1' header_labels=',Nombre,Apellido,Telefono' avatar_field='Address3Street' avatar_size='48' avatar_default='mm']

Notes

info

The list is sorted on the first field defined in the fields list.

In addition to all the available Keap contact fields, this shortcode provides one virtual field: avatar which is converted to a person's gravatar.

For additional information concerning gravatars and default values, please refer to: https://en.gravatar.com/site/implement/images/