User Field

Select one or several users, filtered by role.

The User field selects one or several users of the site, with their avatar shown in the search results.

Configuration

Go to Modern Fields > Fields groups and add the User field. Its settings are in the inspector:

Effect
Searchable rolesOnly offer the users having these roles, custom roles included.
Allow several usersLets the user select more than one user.
The User field settings

Display the users

The field stores user IDs. Read them with get_field():

PHP

Taxonomy Field

Image Field


In this documentation