Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Custom author box
- add_action( 'generate_before_comments_container', 'gp_custom_author_box', 10);
- function gp_custom_author_box() {
- ?>
- <div class="author-box">
- <?php
- global $post;
- $author_id = $post->post_author;
- ?>
- <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' )); ?></div>
- <h5 class="author-title"><?php printf( esc_attr__( 'About %s', 'the author' ), get_the_author_meta( 'display_name') );?></h5>
- <div class="author-summary">
- <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
- <div class="author-links">
- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Read more">
- ...
- </a>
- </div>
- </div>
- </div>
- <?php }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement