Description
This plugin allows editors to create a âPeople Pageâ that displays a list of selected site users with photos, bios, titles, profile and website links and more.
When activated via a page template, the plugin creates a drag and drop meta box which editors can use to select users and create headers. These users are listed on the people page template, along with links to their full profile when applicable.
The plugin also creates custom âTitleâ and âPhotoâ fields on the âUser Editâ admin screen, which are used in theme pages. The plugin also supports âUser Photoâ plugin images and gravatars.
Three template files for both the âTwenty Twelveâ and âTwenty Thirteenâ themes are included within the /theme-templates/ directory:
- âpeople-page.phpâ displays the people page index list
- âauthor.phpâ displays a single userâs info page
- âpeople-page.cssâ contains basic people page styles for each theme; this file can be customized
See âOther Notesâ for more details and usage instructions.
Required Theme Files
After installation a âpeople-page.phpâ template must be created inside your theme’s folder in order to use the plugin. Default templates (based on the Twenty Twelve and Twenty Thirteen themes) are included inside the plugin’s âtheme-templatesâ directory. Copy this file to your themeâs directory if you wish to use it. You can also create a custom template from your site’s theme:
- Duplicate the âpage.phpâ file in your theme’s folder and rename it âpeople-page.phpâ
- Assign your new page as a template by entering the following comment directly after the first php tag: /* Template Name: People Page */
-
Insert the people page index function after the WordPress loop (or wherever you’d like it to appear):
Excerpt Length Argument (integer, optional): Set the character limit where âBiographical Infoâ will be excerpted. Default = 420.
A CSS stylesheet âpeople-page.cssâ that contains basic styles can be found in each of the âtheme-templatesâ subdirectories. Copy it into your theme’s directory to apply the default styles. The styles in this file can be altered to better match your theme.
You may also wish to customize your theme’s âauthor.phpâ template, which is used to display usersâ profiles. A sample âauthor.phpâ file (based on the Twenty Twelve theme) is included in the âtheme-templatesâ. To use your theme’s existing âauthor.phpâ file, insert the people page author function after the loop (or wherever you’d like it to appear):
<?php echo people_page_author(); ?>
The people page data is stored as an array of user IDs and heading strings. You can access this array directly in your theme using get_post_meta():
<?php $people = get_post_meta( $post->ID, 'peeps', true ); ?>
Using the Plugin
To activate the plugin, set a page’s template to use the âPeople Pageâ template and update the page. You should now see the people page meta box in the center column. Use this area to select and arrange users and create section headings if desired.
Additional User Edit / Profile Fields
âTitleâ and âPhotoâ fields (optional) are added to the bottom of the âEdit Userâ admin page when the plugin is activated. When set these fields are included in people page displays. If a photo is not set the plugin will attempt to display 1) a photo set using the âUser Photoâ plugin or 2) a gravatar. Gravatar size is 150 pixels by default.
Default Displays
People Page
- Photo (if set; if not set and available: âUser Photoâ image; gravatar)
- Name (linked if âBiographical Infoâ field is excerpted)
- Title (if set)
- [ posts | website ] (links if: User has posts (to profile) | website if field is set)
- Biographical Info (includes link to profile if text is excerpted)
Author Page
- Photo (if set; if not set and available: âUser Photoâ image; gravatar)
- Name
- Title (if set)
- [ website ] (if set)
- Biographical Info
- Posts (last three; post details: date, and excerpt – if set: comment number, category, tags)
Screenshots
Installation
- Download and unzip the plugin file.
- Upload the unzipped âpeople-pageâ directory to your â/wp-content/plugins/â directory.
- Activate the plugin through the âPluginsâ menu in WordPress.
- See âOther Notesâ for usage instructions.
Reviews
Contributors & Developers
“People Page” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “People Page” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1
- Updated for WordPress 3.9.1 compatibility; Added templates for Twenty Thirteen theme; Visual editor on usersâ âBiographical Infoâ field.
1.0
- Initial release.