Users

Grab, filter, and iterate over Users and their profile data.


This tag has the same functionality as the collection tag, including the ability to use scoping. It does have some differences, though.

The first big and obvious difference, is that the collection you’re working with is all of your users.

Example

Here we will loop over the users with gmail email addresses.

<ul>
  {{ users email:ends_with="@gmail.com" }}
    <li>{{ username }}</li>
  {{ /users }}
</ul>

Parameters

sort

string username

Sort entries by a field.

group

string

Specify the slug to filter users by a single group.

role

string

Specify the slug to filter users by a single role.

Last modified on December 15, 2018