• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » WordPress » Creating A Simple Author Profile Page In WordPress

Creating A Simple Author Profile Page In WordPress

By Nile Flores 9 Comments


I went over an effective way to put more social network handles into your WordPress profile without having to use a plugin, as well as being able to call it to your template in case you have an author’s box somewhere within your single post template.

This time, we are not going to have to tinker with your functions.php page.

To create a new page, you will need to specify that you are making a new template. This one will be called author.php

You want it styles somewhat similar to your other pages, but you can add the following and style it according to your own template. The code contains the gravatar, 3 different social network handles, and a simple listing of the author’s posts. You can customize it to display excerpts, display excerpts with thumbnails, full posts, and more.


<!-- This sets the $curauth variable -->
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
<div class="post-top">
<div class="post-title">
<h2>About: <?php echo $curauth->display_name; ?></h2>
<p style="float:left;padding-right:10px;"><a href="<?php echo $user_link; ?>" title="<?php echo $curauth->display_name; ?>">
<?php echo get_avatar($curauth->user_email, '96', $avatar); ?>
</a></p><p style="float:left;">Connect with <?php echo $curauth->display_name; ?> at: <a href="http://twitter.com/<?php echo $curauth->twitter; ?>"><strong>Twitter</strong></a> | <a href="http://facebook.com/<?php echo $curauth->facebook; ?>"><strong>Facebook</strong></a> | <a href="http://linkedin.com/in/<?php echo $curauth->linkedin; ?>"><strong>LinkedIn</strong></a></p>
<br />
<h3><strong>Website:</strong> <span><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></span></h3>
<p><strong>Profile:</strong> <?php echo $curauth->user_description; ?><p>
</div></div>
<div class="entry">
<h3>Posts by <?php echo $curauth->display_name; ?>:</h3>
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>
</li>
<?php endwhile; else: ?>
<p><?php _e('No posts by this author.'); ?></p>
<?php endif; ?>
<!-- End Loop -->
</ul>

In order for people to be able to see your author, simply add the following within your post’s byline:

Written by <span><?php the_author_posts_link(); ?></span>

This is actually from my own template from Blondish.net. In fact, this is what my author profile looks like at Blondish.net.


Filed Under: WordPress Tagged With: author profile, tips

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

No related posts.

Reader Interactions

Comments

  1. AnotherBlogg3r says

    May 26, 2010 at 5:55 am

    Hi Nile.
    Is there any plugin for show author profile and short bio with number of post?
    Thanks
    My recent post How To Targeting Local Search?

    Reply
    • Nile says

      May 26, 2010 at 1:40 am

      There is a plugin for the author info I believe, but as for the page, no. At least none I have seen yet. You need to create a template for that. You are using StudioPress on your site still, right?… Just take your page.php and copy it. Open the file up and put the info from this tutorial in it.

      The code I gave above can be broke done below the author code. I will probably go back and make hidden note notations so it is easy to tell what is what.

      If you do decide you need help, all I would need is a copy of your css style sheet and your page.php so I keep your site consistent.

      Reply
  2. Amy says

    June 4, 2010 at 10:14 pm

    Hi Nile.
    Is there any plugin for show author profile and short bio with number of post?
    Thanks
    My recent post How To Targeting Local Search?

    Reply
    • Nile says

      June 5, 2010 at 8:56 pm

      You just need to copy the code above as the tutorial says and you can alter your theme. The one above has author profile, combined with social network profiles (which I covered in another tutorial) and some links to your most recent posts.

      You can customize it to show the profile with your gravatar and then excerpts as well.

      Reply
  3. aarondas says

    December 27, 2010 at 9:08 am

    Hello Nile,

    I have a quesion about <?php the_author_posts_link(); ?>. I am trying to use this in a member directory that I have, which will list members by Last_name,first_name. I want to be able to link this to their profile. would I do it like this

    < a href=&rdquo ;http://www.example.com/&lt;?php echo the_author_login($auser['nicename']); ?>/”><?php echo $auser['last'].", ".$auser['first']; ?>< /a>

    or would I simply put it as

    < a href=&rdquo ;http://www.example.com/&lt;?php echo the_author_login(); ?>/”><?php echo $auser['last'].", ".$auser['first']; ?>< /a>

    Thank you,

    Aaron

    Reply
  4. Mike Andy says

    April 2, 2012 at 4:03 pm

    Thanks dear… exactly what i was looking for.. <3 <3

    Reply

Trackbacks

  1. Tweets that mention Creating A Simple Author Profile Page In WordPress | WP Addict -- Topsy.com says:
    May 17, 2010 at 3:33 am

    […] This post was mentioned on Twitter by Rendy. Rendy said: Creating A Simple Author Profile Page In WordPress http://bit.ly/cBENy5 […]

    Reply
  2. 6 Steps to Preparing Your Site for Guest Bloggers | Blondish.net says:
    July 20, 2010 at 1:06 am

    […] Create an Author Page for your guest bloggers. If you have a few regular guest bloggers, this is a nice page for your guest bloggers to bring back to their own site to promote. […]

    Reply
  3. WPAddict (WP Addict) says:
    September 7, 2010 at 6:08 am

    Twitter Comment


    Creating A Simple Author Profile Page In WordPress [link to post]

    – Posted using Chat Catcher

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress