A WordPress plugin to retrieve and display people from people.wsu.edu.
This plugin adds the following attributes to shortcodes registered with or extended from WSUWP Content Syndicate:
classification
- Classification slug to retrieve people by.display_fields
- A comma-separated list of fields to display for each profile. Defaults tophoto,name,title,office,email
. Additional fields includedegree
,address
,phone
,bio
,bio-unit
,bio-university
, andwebsite
.filters
- A comma-separated list of filtering options. Allowed values includesearch
,location
,organization
,classification
,tag
, andcategory
. Thecategory
value combines terms from university categories and site categories. Labels for each filter option can be adjusted using the attributes below:category_filter_label
- Defaults toFilter by category
.classification_filter_label
- Defaults toFilter by classification
.location_filter_label
- Defaults toFilter by location
.organization_filter_label
- Defaults toFilter by organization
.search_filter_label
- Defaults toType to search
.tag_filter_label
- Defaults toFilter by tag
.
exclude_term_values
- A comma-separated list of term values to exclude when filtering - uses the option value from the filter drop down to exclude a term.photo_size
- Specify the size of the photo to display for each profile. Defaults tothumbnail
. Other allowed values includemedium
andlarge
.link
- Link a person's name and photo to their full profile. Works only when thehost
attribute is being used.website_link_text
- Link text to display for thewebsite
field when it is being output. Defaults toWebsite
.nid
- Displays an individual person associated with the given WSU Network ID.profile_page_url
- (Legacy: see view profile) Link to dynamic profile page. Allows you to show profiles on your site instead of linking out.view_proflie
- Show profile on pageheading_tag
- HTML tag to use for the profile title. Defaults toh2
.display_first
- List of comma-separated nids to display first in order.
Basic usage: [wsuwp_people count="10"]
.
Display only name, title, and phone: [wsupw_people display_fields="name,title,phone"]
.
Display single profile: [wsuwp_people output="profile" nid="-person-nid-here-"]
.
Dynamic profile pages
- Create a dynamic profile page
[wsuwp_people output="profile"]
.- Do not set the
nid
attribute. - You can use the
bio
options indisplay_fields
to choose a bio to display on the profiledisplay_fields="....,bio-unit"
. - Copy the URL to to this page.
- Do not set the
- Create a gallery/directory page using the
profile_page_url
andlink
attributes[wsuwp_people link="has-bio" profile_page_url="-copied-url-from-above"]
.