Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. function woo_author_box() {
  2. global $post;
  3. $author_id=$post->post_author;
  4. ?>
  5. <div id="post-author">
  6. <div class="profile-image"><?php echo get_avatar( $author_id, '80' ); ?></div>
  7. <div class="profile-content">
  8. <h4><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author_meta( 'display_name', $author_id ) ); ?></h4>
  9. <?php echo get_the_author_meta( 'description', $author_id ); ?>
  10. <?php if (is_singular()) : ?>
  11. <div class="profile-link">
  12. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID', $author_id ) ); ?>">
  13. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'woothemes' ), get_the_author_meta( 'display_name', $author_id ) ); ?>
  14. </a>
  15. </div><!-- #profile-link -->
  16. <?php endif; ?>
  17. </div>
  18. <div class="fix"></div>
  19. </div>
  20. <?php
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement