WordPress.org

Ready to get started?Download WordPress

Plugin Directory

People Page

Create a "People Page" that displays a list of selected site users with photos, bios, titles, links and more.

Other Notes

Required Theme Files

After installation a "people-page.php" template must be created inside your theme's folder in order to use the plugin. A default template (based on the Twenty Twelve theme) is included in the plugin's 'theme-templates' directory. Copy this file to your theme if you wish to use it. If you want to create a new template from your site's theme:

  1. Duplicate the "page.php" file in your theme's folder and rename it "people-page.php"
  2. Assign your new page as a template by entering the following comment directly after the first php tag: /* Template Name: People Page */
  3. Insert the people page index function after the WordPress loop (or wherever you'd like it to appear):
<?php echo people_page(); ?>

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 the 'theme-templates' directory. 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)

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-19
Downloads: 1,766

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.