Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function woo_author_box() {
- global $post;
- $author_id=$post->post_author;
- ?>
- <div id="post-author">
- <div class="profile-image"><?php echo get_avatar( $author_id, '80' ); ?></div>
- <div class="profile-content">
- <h4><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author_meta( 'display_name', $author_id ) ); ?></h4>
- <?php echo get_the_author_meta( 'description', $author_id ); ?>
- <?php if (is_singular()) : ?>
- <div class="profile-link">
- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID', $author_id ) ); ?>">
- <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author_meta( 'display_name', $author_id ) ); ?>
- </a>
- </div><!-- #profile-link -->
- <?php endif; ?>
- </div>
- <div class="fix"></div>
- </div>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement