This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

author.php

By: n3rdabl3 on Aug 1st, 2012  |  syntax: None  |  size: 0.82 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php get_header(); ?>
  2. <?php if (have_posts()) : ?>
  3.  
  4. <div id="page-heading">
  5.                 <?php
  6.         if(isset($_GET['author_name'])) :
  7.         $curauth = get_userdatabylogin($author_name);
  8.         else :
  9.         $curauth = get_userdata(intval($author));
  10.         endif;
  11.         ?>
  12. <?php
  13. if(function_exists('coauthors_posts_links'))
  14.     coauthors_posts_links();
  15. else
  16.     the_author_posts_link();
  17. endif;
  18. ?>
  19.         <h1><?php _e('Posts by','gopress'); ?>: <?php echo $curauth->nickname; ?></h1>         
  20. </div>
  21. <!-- END page-heading -->
  22.  
  23. <div id="post" class="post clearfix">  
  24.         <div id="archive">  
  25.                 <?php
  26.         // get post entry
  27.         get_template_part('loop', 'entry') ?>    
  28.         <?php pagination(); ?>
  29.     </div>
  30. </div>
  31. <!-- END #post -->
  32. <?php endif; ?>    
  33. <?php get_sidebar(' '); ?>         
  34. <?php get_footer(' '); ?>
clone this paste RAW Paste Data