Advertisement
tzvij

Full Author Bio

Jun 17th, 2014
7,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <!--BEGIN .author-bio-->
  2. <div class="author-bio">
  3.             <?php echo get_avatar( get_the_author_meta('email'), '90' ); ?>
  4.             <div class="author-info">
  5.                 <h3 class="author-title">Written by <?php the_author_link(); ?></h3>
  6.                 <p class="author-description"><?php the_author_meta('description'); ?></p>
  7.                 <p>Website: <a href="<?php the_author_meta('user_url');?>"><?php the_author_meta('user_url');?></a></p>
  8.                 <ul class="icons">
  9.                     <?php
  10.                         $rss_url = get_the_author_meta( 'rss_url' );
  11.                         if ( $rss_url && $rss_url != '' ) {
  12.                             echo '<li class="rss"><a href="' . esc_url($rss_url) . '"></a></li>';
  13.                         }
  14.                        
  15.                         $google_profile = get_the_author_meta( 'google_profile' );
  16.                         if ( $google_profile && $google_profile != '' ) {
  17.                             echo '<li class="google"><a href="' . esc_url($google_profile) . '" rel="author"></a></li>';
  18.                         }
  19.                        
  20.                         $twitter_profile = get_the_author_meta( 'twitter_profile' );
  21.                         if ( $twitter_profile && $twitter_profile != '' ) {
  22.                             echo '<li class="twitter"><a href="' . esc_url($twitter_profile) . '"></a></li>';
  23.                         }
  24.                        
  25.                         $facebook_profile = get_the_author_meta( 'facebook_profile' );
  26.                         if ( $facebook_profile && $facebook_profile != '' ) {
  27.                             echo '<li class="facebook"><a href="' . esc_url($facebook_profile) . '"></a></li>';
  28.                         }
  29.                        
  30.                         $linkedin_profile = get_the_author_meta( 'linkedin_profile' );
  31.                         if ( $linkedin_profile && $linkedin_profile != '' ) {
  32.                             echo '<li class="linkedin"><a href="' . esc_url($linkedin_profile) . '"></a></li>';
  33.                         }
  34.                     ?>
  35.                 </ul>
  36.             </div>
  37. <!--END .author-bio-->
  38. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement