Advertisement
n3rdabl3

author.php

Aug 1st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  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(' '); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement