Support » Themes and Templates » Page Templates

  • This is my first website with WordPress, but I have experience with css and php already.

    I am making a site that requires bios for 6-8 people each of which will have their own page. I want to have a template so each page looks similar. All I need is a content area and then a widget area for adding a photo and some additional info.

    So far the only way I see this can be done is to duplicate the default template for each bio page, create a new widget area for each page, and then load the widget into each template.

    Is there a quicker way?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi


    Forum Moderator

    A single custom page template and some custom fields for the person-specific data.

    You’d just need to create one page template and you can apply it all those pages.

    If the sidebar content is going to be the same, you’d just need to register one additional widget area, and call that from you page template.

    I’d say that’s the simplist way to do it.

    If you want to try another more advanced route, you could use custom post types:

    To do that, you would add something like this to your functions.php:

    add_action( 'init', 'create_post_type' );
    function create_post_type() {
      register_post_type( 'bios,
          'labels' => array(
            'name' => __( 'Bios' ),
            'singular_name' => __( 'Bios' )
          'public' => true

    Then you could create a template called single-bios.php that it would use.

    The downfall is that there is no multiple template yet (to display all your bios on one page). But that should be out shortly in WordPress 3.1, and then you would just need to create a template called: archive-bios.php.

    This might be a more interesting route if you needed add extra metaboxes for data about each person who has a bio, or use additional taxonomies.

    If any of that is confusing, just go back up to option 1. 🙂

    Thanks for the response. It looks like the custom field is what I need to use.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page Templates’ is closed to new replies.