With shortcodes, you can quickly drop a few people into any page or post.
List view displays all public users in a list format. It shows their photo, name, phone1, email, mailing address, and website address.
Table view displays all public users in a table. It shows their photo, name, title, phone1, email, office location, office hours, and courses.
If you would like to encourage people to email your users rather than call, add “phone1” to the hide_fields:
You can also hide more than one field by separating the values with commas. If you wanted to hide both the phone number and the email address:
| BrianDunnigan||Designer||BECAT A-66||8:30-4:30, M-F|
| MusaJatkowski||Support Specialist|
| JoshuaRoy||Programmer||8:30 - 4:30|
| YiZhang||Team Lead|
The fields that can be hidden are name, image, title, phone1, email, mailingAddress, officeLocation, officeHours, and courses.
Using Tags to Show Select Users
Users can be entered with tags which can be used to mix and match any combination or subset of your users.
For example, if you tagged a number of your users with the word “faculty” you could then bring up a list of all “faculty” users with:
You can also use more than one tag and only display users that have all of those tags. For example, you could create a list of users that have the tags “faculty” and “adjunct” with:
You can add as many tags as you want to sort your users in as many ways as you can think of.
You can, of course, combine tags and hide_fields to create different combinations.
Creating an Index of Users with Page Templates (Deprecated)
This is another method to create a page with a list of your users.
Update (July 2014): This method is still available in the themes Hale and Prudence, but it is highly recommended that users pursue the shortcode method outlined above. Future themes will no longer use these page templates.
- Go to Pages > Add New
- Title your page whatever you like.
- Write any content that you would like to appear above your user index in the main content area.
- On the right, under Page Attributes, change the Template from Default Template to either User List or User Table.
- Optionally, you can also filter the results by one or more tags. To do this, scroll to the very top of the screen and look for the ‘screen options‘ tag. Check the box for ‘Custom Fields‘. If you scroll back down, you’ll see the Custom Fields box appear under the main content area. Click the ‘Enter new‘ link just above the Add Custom Field button. On the left, under Name, enter “userTags”. On the right, enter the tags you would like to limit this index to, separated by commas.
This page will display the user’s photo if any was added, and a few key pieces of contact information. If you want to use the tags feature, you can make multiple User List or User Table pages, each with different tags, and sort people based on a number of criteria.