How To Add Biographical Information On WordPress Blog

Posted by

Hi,

It is possible to display biographical information of post author at the bottom of the post..to do that you need to perform these steps:

Inside of a user profile there is a “biographical info” box where you can place information about yourself. We are going to take the information in this box and display it at the bottom of every post that is under that author.

The template tag we are going to focus on is <?php the_author_description(); ?> This tag does not accept any parameters, so do not try to do anything with this tag. Now, head to your templates Style sheet and add this to it:

.postauthor { }

This will give us the opportunity to style the postauthor bit when it’s published in the post. Now that we have the template tag in order, we will need to place it within the loop. General, it deals with the information related to posts. Browse to your themes index.php file and look for something like this:

< ?php the_content(‘Read the rest of this entry »’); ?>

This is the function that displays the content of the post. Underneath of this content function is where you would want to place the following code:

< div class=”postauthor “>< ?php the_author_description(); ? >< /div>

Example OF .postauthor { } CSS:

.postauthor {
color: #222222;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
background: #EAEAEA;
border-top: 2px solid #000000;
border-bottom: 1px solid #000000;
width: 640px;
padding: 3px;
margin-bottom:5px;
}

You can define it with your desired.

That’s it!

Thanks,

Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.