Sign Up For Web Hosting Now!
WordPress Services
No.1 Wordpress Host
  • Free Domain name
  • Unlimited space
  • Unlimited traffic
  • 99.9% Server Uptime
  • FREE WP installation
  • Wordpress themes
  • Immediate activation
Buy web hosting
Sign up now Learn more
WordPress Hosting Award
WordPress Hosting Award
Facebook Twitter Plusone

How to show the post author in your page

To display information about the post author, open the single.php file of your WordPress theme and find where the content is displayed - "<?php the_content(''); ?>". After this, add the following lines in your theme:

<?php if ($lw_post_author == "true" && is_attachment() != TRUE) : ?>
<div class="about_author">
<div class="alignleft"><?php echo get_avatar( get_the_author_id(), '28' );   ?></div>
<div class="alignleft"><h4><?php _e('Author','lightword'); ?>: <a href="<?php the_author_url(); ?> "><?php the_author(); ?></a></h4>
<?php the_author_description(); if(!get_the_author_description()) _e('No description. Please update your profile.','lightword'); ?></div><div class="clear"></div> </div>
<?php endif; ?>


This will add information about the post author on your site. Simply update your style.css in order to make this block look the way you want.
Previous Next
(c) Copyright 2004-2013 SiteGround. All rights reserved
WordPress is a trademark of Free Software Foundation, Inc. SiteGround is not affiliated with or endorsed by the WordPress Project or its trademark owners.