After selecting a user or users, place data tags between the opening and closing plugin tags to choose what is displayed:
{user id="42"}
<h2>[name]</h2>
<p>[profile:city]</p>
{/user}
An unprefixed data tag refers to the user in the current result row. If the body is empty, Users Anywhere outputs nothing; it does not render a default user layout.
Where Data Tags Can Be Used
Use square brackets when outputting a value, for example [name]. In filters, ordering, and If Structures, use the selector without square brackets:
{users usergroup="Customer" ordering="name"}
{if profile:city = "Amsterdam"}[name]{/if}
{/users}
The plural tag, filters, ordering, and its result-row controls are Pro features. If Structures and the shared data groups can also be used with the single-user tag in Free.
Data Groups
| Group | Examples | Availability |
|---|---|---|
| User account data | [id], [name], [username], [email], and account dates | Free and Pro |
| Joomla User Profile data | [profile:address1], [profile:city], [profile:website] | Free and Pro, when the User - Profile plugin is enabled |
| Published contact data | [contact:name], [contact:position], [contact:email] | Text data is shared; contact image and contact form output are Pro |
| Membership data | [accesslevels], [usergroups] | Free and Pro |
| User custom fields | [field:department], [field:department:text] | Pro |
| Images | [contact:image], media custom fields, resizing, and external-image download | Pro |
| Result numbers | [count], [total], [page] | Pro |
| Registered input values | [input:department:All departments] | Pro |
Authentication secrets, activation values, MFA data, and unrestricted database columns are not public data tags. Article-specific values such as title, alias, category, introtext, tags, and hits are not user data.
Text, Date, and Calculation Options
Supported values can use the relevant Text Options and Date Options. Numeric values can use calculations documented on the Numbers page.
Data from Another User or Row
| Prefix | Description | Availability |
|---|---|---|
current:... | Data from the currently logged-in visitor, for example [current:name]. | Free and Pro |
row:... | Data from the current row of a Pro multiple-user result. | Pro |
previous:..., next:... | Data from the adjacent result row. | Pro |
first:..., last:... | Data from the first or last result row. | Pro |
1:..., 2:..., etc. | Data from a numbered result row. | Pro |
See Data from Specific Users for examples.