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

The_author Loop

By: a guest on Mar 5th, 2012  |  syntax: None  |  size: 0.41 KB  |  views: 43  |  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.            <p class="post-author author vcard">
  2.  
  3.                                 <?php
  4.  
  5.                                 /* translators: this is for the author byline, such as 'by John Doe' */
  6.  
  7.                                 $author_url = '<a href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" class="url">' . get_the_author_meta( 'display_name' ) . '</a>';
  8.  
  9.                                 printf( __( 'by %s', 'graphene' ), '<span class="fn nickname">' . $author_url . '</span>' );
  10.  
  11.                                 ?>
  12.  
  13.                         </p>