Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Author Template

By: STATEDLIGHT on Jan 21st, 2013  |  syntax: None  |  size: 3.44 KB  |  views: 26  |  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.  
  3. <div id="container">
  4.   <div id="content">
  5.     <?php the_post(); ?>
  6.     <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'tiger' ), "<a class='url fn n' href='$authordata->user_url' title='$authordata->display_name' rel='me'>$authordata->display_name</a>" ) ?></h1>
  7.     <?php $authordesc = $authordata->user_description; if ( !empty($authordesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $authordesc . '</div>' ); ?>
  8.     <?php rewind_posts(); ?>
  9.     <?php while ( have_posts() ) : the_post(); ?>
  10.     <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11.       <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
  12.         <?php the_title(); ?>
  13.         </a></h2>
  14.       <div class="entry-meta"> <span class="meta-prep meta-prep-author">
  15.         <?php _e('By ', 'tiger'); ?>
  16.         </span> <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php printf( __( 'View all articles by %s', 'tiger' ), $authordata->display_name ); ?>">
  17.         <?php the_author(); ?>
  18.         </a></span> <span class="meta-sep"> | </span> <span class="meta-prep meta-prep-entry-date">
  19.         <?php _e('Published ', 'tiger'); ?>
  20.         </span> <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>">
  21.         <?php the_time( get_option( 'date_format' ) ); ?>
  22.         </abbr></span>
  23.         <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  24.       </div>
  25.       <div class="entry-summary">
  26.         <?php the_content( __( 'continue reading <span class="meta-nav">&raquo;</span>', 'tiger' )  ); ?>
  27.       </div>
  28.       <div class="entry-utility"> <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links">
  29.         <?php _e( 'Posted in ', 'tiger' ); ?>
  30.         </span><?php echo get_the_category_list(', '); ?></span> <span class="meta-sep"> | </span>
  31.         <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'tiger' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\"> | </span>\n" ) ?>
  32.         <span class="comments-link">
  33.         <?php comments_popup_link( __( 'Leave a comment', 'tiger' ), __( '1 Comment', 'tiger' ), __( '% Comments', 'tiger' ) ) ?>
  34.         </span>
  35.         <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
  36.       </div>
  37.     </div>
  38.     <?php endwhile; ?>
  39.     <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  40.     <div id="nav-below" class="navigation">
  41.       <?php if(function_exists('wp_pagenavi')) { ?>
  42.       <?php wp_pagenavi(); ?>
  43.       <?php } else { ?>
  44.       <div class="nav-previous">
  45.         <?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'tiger' )) ?>
  46.       </div>
  47.       <div class="nav-next">
  48.         <?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'tiger' )) ?>
  49.       </div>
  50.       <?php }  ?>
  51.     </div>
  52.     <?php } ?>
  53.   </div>
  54. </div>
  55. <div id="sidebar">
  56.   <?php dynamic_sidebar('right'); ?>
  57. </div>
  58. <?php get_footer(); ?>