whyisjake

Jake Spurlock

May 19th, 2010
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. function author_bio_display($content)
  2. {
  3.     // this is where we'll display the bio
  4.    
  5.     $options['page'] = get_option('bio_on_page');
  6.     $options['post'] = get_option('bio_on_post');
  7.    
  8.     if ( (is_single() && $options['post']) || (is_page() && $options['page']) )
  9.     {
  10.         $bio_box =
  11.         '<div id="author-bio-box">
  12.             '.get_avatar( get_the_author_meta('user_email'), '80' ).'
  13.             <span class="author-name">'.get_the_author_meta('display_name').'</span>
  14.             <p>'.get_the_author_meta('description').'</p>
  15.             <div class="spacer"></div>
  16.         </div>';
  17.        
  18.         return $content . $bio_box;
  19.     } else {
  20.         return $content;
  21.     }
  22. }
Add Comment
Please, Sign In to add comment