Loop: User

For loop type user, here are the query parameters and fields.

Query parameters

  • exclude - Exclude users by ID or name

    Type: string, array

  • fields -

  • id - User by ID

    Type: string, array

  • include - Include users by ID or name

    Type: string, array

  • name - User by name/slug

    Type: string, array

  • not_role - Exclude user role(s)

    Type: string, array

  • order - Order: asc (ascending) or desc (descending)

    Default: asc
    Type: string

  • orderby - Order by field

    Default: display_name
    Type: string, array

  • paged - Items per page

    Default: 10
    Type: number

  • role - User role(s)

    Type: string, array

Fields

  • archive_url - Post archive URL
  • avatar - Avatar image
  • avatar_url - Avatar URL
  • edit_url - Edit URL
  • email - Email
  • full_name - Full name
  • id - ID
  • name - Name
  • post_count - Post count
  • registration_date - Registration date
  • url - URL