User
For loop type user
, here are the query parameters and fields.
Query parameters
exclude
- Exclude users by ID or name
Type: string, arrayid
- User by ID
Type: string, arrayinclude
- Include users by ID or name
Type: string, arrayname
- User by name/slug
Type: string, arraynot_role
- Exclude user role(s)
Type: string, arrayorder
- Order: asc (ascending) or desc (descending)
Type: string - Default: ascorderby
- Order by field
Type: string, array - Default: display_namepaged
- Items per page
Type: number - Default: 10role
- User role(s)
Type: string, array
Fields
archive_url
- Post archive URLavatar
- Avatar imageavatar_url
- Avatar URLedit_url
- Edit URLemail
- Emailfull_name
- Full nameid
- IDlocale
- User locale from the Language setting in profile edit screenname
- Namepost_count
- Post countregistration_date
- Registration dateroles
- User role(s)url
- URL
User conditions
Current user is logged in
<If user exists>
Current user is not logged in
<If not user exists>
Current user is admin
<If user_role includes value=administrator>
User field value
<If user_field=field_name value="something">
User tag
The User
tag is a shortcut to get a field from the current user.