Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="author_block">
- <h2>About Author (<?php the_author_posts(); ?>)</h2>
- <div class="author_single">
- <table width="100%">
- <td class="avata_post"><?php echo get_avatar( get_the_author_meta('email'), '65' ); ?></td>
- <td class="author_name"><?php the_author_posts_link(); ?>
- <div class="user_role"><?php global $post;
- if ( user_can( $post->post_author, 'administrator' ) ) { ?>
- Administrator <img height="15px" width="15px" src="http://hamwap.com/img/verified-ceo.png" >
- <?php }
- elseif ( user_can( $post->post_author, 'editor' ) ) { ?>
- Editor <img src="editor image link" />
- <?php }
- elseif ( user_can( $post->post_author, 'author' ) ) {
- echo 'Author';
- }
- elseif ( user_can( $post->post_author, 'contributor' ) ) {
- echo 'Contributor';
- }
- elseif ( user_can( $post->post_author, 'subscriber' ) ) {
- echo 'Subscriber';}
- else {
- echo '<strong>Guest</strong>';
- }?></div>
- <p><?php the_author_meta('description'); if(!get_the_author_meta('description')) _e('This author may not interusted to share anything with others'); ?></p>
- </td>
- </table>
- </div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement