[memb_member_listing]

Version Added 2.51.00

Summary

This shortcode displays a list of users based on their user role or tag ID. The list can display their first and last name, Gravatar, IP address and total number of logins.

Shortcode Examples

Display a list of users who have “Memberium Gold” user role:

[memb_member_listing role="Memberium gold"]
[memb_gravatar email="%%contact.email%%"] 
Name:  %%contact.firstname%% %%contact.lastname%%
IP:  %%meta.ipaddress%%
Logins:  %%meta.login_count%%
[/memb_member_listing]

Display a list of users who have the tag ID “101” for example:

[memb_member_listing tag_id=101]
[memb_gravatar email="%%contact.email%%"] 
Name:  %%contact.firstname%% %%contact.lastname%%
IP:  %%meta.ipaddress%%
Logins:  %%meta.login_count%%
[/memb_member_listing]

Display a list of users who have the tag ID “101”, along with their First name, Phone number and Custom field, for example:

[memb_member_listing tag_id=101]
[memb_gravatar email="%%contact.email%%"] 
Name:  %%contact.firstname%% 
Phone: %%contact.phone1%% 
CustomField: %%contact._customfield%%
Logins:  %%meta.login_count%%
[/memb_member_listing]

Sort the order of the listing by ascending order, based on First name.

[memb_member_listing tag_id=123 order=asc order_by=first_name]
Name:  %%contact.firstname%% %%contact.lastname%%
Logins:  %%meta.login_count%%
Email: %%contact.email%%
[/memb_member_listing]

Shortcode Parameters

id: Contact ID of the user.

tag_id: Tag ID for which you want to display users.

count: Number of users to show in the list. It will show 10 users by default.

offset: Number of users to offset from the list.

order: Sort the order of the listing by ASC or DESC

order_by: Define the sorting order field name (Default is Display Name). Since WordPress stores the data as text and not as numeric values, sorting won’t actually work correctly for numbers.

Merge Fields

The following merge fields or placeholders are used by [memb_member_listing]

%%contact.email%% – Displays the email address of the contact.

%%contact.firstname%% – Displays the First name of the contact.

%%contact.lastname%% – Displays the Last name of the contact.

%%contact.phone1%% – Displays the Phone number of the contact.

%%meta.ipaddress%% – Displays IP address of the contact.

%%meta.login_count%% – Displays the login count.

%%contact.fieldname%% – Replace fieldname with the name of an Infusionsoft field.

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: No (?)
Capturable: No (?)