WSUWP Content Syndicate People
A WordPress plugin to retrieve and display people from people.wsu.edu.
by washingtonstateuniversity, jeremyfelt · github.com/washingtonstateuniversity/wsuwp-content-syndicate-people · website
★ 1stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/washingtonstateuniversity/wsuwp-content-syndicate-people/archive/refs/heads/master.zipA WordPress plugin to retrieve and display people from people.wsu.edu.
Shortcode attributes
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. Thecategoryvalue 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 includemediumandlarge.link- Link a person's name and photo to their full profile. Works only when thehostattribute is being used.website_link_text- Link text to display for thewebsitefield 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.
Example usage
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
nidattribute. - You can use the
biooptions indisplay_fieldsto 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_urlandlinkattributes[wsuwp_people link="has-bio" profile_page_url="-copied-url-from-above"].