Staff Lists

The staff shortcode is a quick way to automatically gather specific staff from the directory and display it on your site. Below are an explanation and demonstration of how to use the shortcode.

Code / Usage Example

Shortcode Example:

Code

[staff department="International Education" include="326"]
[staff department="International Education" exclude="326"]

Attributes

  • Staff Department: This fetches the staff from a specified department via the staff directory. https://sites.allegheny.edu/directory/
  • Include: This will fetch one specific staff member based on their id number. This can be found in the WordPress URL that corresponds to the staff member in the directory (ie https://sites.allegheny.edu/directory/wp-admin/post.php?post=345&action=edit). This can be used to help structure the staff site as desired.
  • Exclude: This will fetch every staff member except for the specified member based on the id given.
  • Style: There are two styles available. Default, where no style has to be specified, which creates a list of staff. Alt, where style must be specified (style=”alt”), which creates tiles that have information for each staff member.

Usage Example: Default

Department does not exist, or there is no one in this department.
Department does not exist, or there is no one in this department.

Usage Example: Alt

Department does not exist, or there is no one in this department.