Creating a directory of faculty and staff profiles on your site is accomplished by using shortcode. There are multiple attributes that can be added to this shortcode to change the way your directory looks. You can copy the shortcodes from this page and paste them into a page on your site to create the directory.
The basic directory, which is a simple tabular listing of all the people on your site, uses this shortcode with no attributes:
This will create a tabular view of everyone on your site.
With the table view, you can sort and filter and it supports pagination.
Show division names on the table view
To show a column for divisions use the shortcode attribute: show_division
The attribute show_division when added to the short code will add a column for division in the tabular view and will allow the user to search/sort by it. This has no affect when the display type is set to “gallery”
How to hide phone numbers and/or emails in the table view
To hide phone numbers or emails from the tabular view use the shortcode attributes: hide_phone and hide_email
[upd_people_directory hide_phone="yes" hide_email="yes"]
One Column Gallery View
To change the view to a gallery view, with thumbnails and other information, use the shortcode attribute: displaytype
Limit the view to people from a certain division
People can be categorized into different divisions (think post categories). To only show people from a certain division, use the shortcode attribute: divisions
You can then enter the division you want to show, or multiple divisions separated by a comma.
NOTE: The “divisions” attribute must be the SLUG of a division, not the title.
To show pagination on the gallery view
By default, pagination is turned off on the gallery view. You can enable it with the shortcode attribute: show_pagination
[upd_people_directory divisions="network-services" displaytype="gallery" show_pagination="true"]
NOTE: Pagination is turned on by default in the tabular view. This attribute has no affect when the view is set to tabular view.
To control the number of items that show per page
Use the shortcode attribute: items_per_page
[upd_people_directory divisions="network-services" displaytype="gallery" show_pagination="true" items_per_page="2"]
Multi-column gallery view
You can change the gallery profile from a single column to multiple columns across the page. The layout will make as many columns as there is space available on the page.
To turn on multi-column, use the shortcode attribute: multi_column
[upd_people_directory displaytype="gallery" show_pagination="true" multi_column="true" items_per_page="3"]
Create custom sort order
By default, all views are listed in alphabetical order. If there are people, such as a department head, who need to show up at the top of a listing, you can select that when creating/editing that persons profile. In the “General Settings” dropdown menu, check the “Override Sort Order” checkbox and then set the “Sort Order” parameter.
The “Sort Order” number is used to create a customized order. Setting the “Sort Order” without checking the “Override Sort Order” checkbox has no affect.
Link to profile page
To link the profile to an external profile
You can link an entry in the directory to a profile in an external site. To do this, create the entry and set the “Page Links To” field at the bottom of the entry page to “A custom URL” and enter the URL into the text field below.
This is helpful if you want to display someone’s name and contact information on your site, but keep their main profile in another site.
NOTE: This will not pull in any information from the other site. Any contact information you want to display, you will need to enter it manually.
Person without a profile
If you want to create an entry but not have it linked to an individual profile page or an external profile, check the “Don’t Link profile” checkbox in the “General Info” dropdown menu. It will display in gallery and tabular views with the contact information you have entered, but will not link to an individual profile page or an external URL.