Wordpress - Grab author description & image


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <div class="author">
  2. <img src="<?php bloginfo('template_directory') ?>/authors/<?php the_author_ID()?>.jpg" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" />
  3. <?php the_author_description(); ?>
  4. </div>
  5. <!-- author -->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.