In Chapter 3, I had explained how to create and use page templates. Well, it's now time to make efficient use of page templates. If you have different authors on your blog, then my suggestion to you would be to display the biographical and contact information of each author on his own dedicated page. Luckily, WordPress allow us to do just that.
In this recipe, we're going to create an author page template for the purpose of displaying author related information. Make sure that you have understood the creation and usage of a page template. This has been explained earlier, in Chapter 3.
Create a new file named
authors.php
on your WordPress theme directory.Insert the following code into your file named
authors.php
:<?php /* Template Name: Authors Page */ ?> <?php get_header(); ?> <div id="content" class="narrowcolumn"> <?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name...