-
Notifications
You must be signed in to change notification settings - Fork 0
Orbit Query Users
Samuel Thomas edited this page Jan 31, 2020
·
1 revision
- search: Show users based on a keyword search.
[orbit_query_users search="keyword"] - role: Show users from a particular singular role.
[orbit_query_users role="author"] - role__in: Show users from multiple roles.
[orbit_query_users role__in="editor,author"] - role__not_in: To exclude users by role.
[orbit_query_users role__not_in="editor,author"] - include: use author ids. Specify authors to retrieve.
[orbit_query_users include="1,3"] - exclude: use author ids. Specify authors not to retrieve.
[orbit_query_users exclude="1,3"] - orderby: Sort retrieved authors by parameter. Defaults to 'ID (author id)'.
- order: Designates the ascending or descending order of the 'orderby' parameter. Defaults to 'DESC'.
- number: The number of authors that should appear. By default the value is 10.
- paged: The number of page whose default value is 1. Show the authors that would normally show up just on page X when using pagination.
- style: To use the theme templates, within the shortcode
[orbit_query_users style=list]
- Create a folder "orbit_query" within the theme.
- To create a new template "grid" for
[orbit_query_users], create a file with the name "users-grid" inside the folder "wp-content/[your-theme]/orbit_query". - To use the new created template, within the shortcode use
[orbit_query_users style="grid"]