Title: If author doesn&#8217;t equal admin echo [code]
Last modified: August 19, 2016

---

# If author doesn’t equal admin echo [code]

 *  [alexasigno](https://wordpress.org/support/users/alexasigno/)
 * (@alexasigno)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/if-author-doesnt-equal-admin-echo-code/)
 * Hiya, I am trying to only show the following code when the author isn’t admin.
   I have spent ages trying to mess around with conditions trying to exclude the
   author so I am obviously doing something wrong.
 * Any help would be most appreciated.
 * Many thanks
    Alex
 *     ```
       <?php $author_info=get_the_author_description(); if($author_info != "") { ?>				<div id="subhead">
       <h3>About the Author</h3>					<?php /* this is the author photo pulled from gravatar.com */					$md5 = md5( $email=get_the_author_email() );					echo "<img class='auth-single-post' src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&amp;size=75' alt='author photo' />";					?>					<p><?php the_author_description(); ?></p>					<p style="padding-top:5px;"><a href="<?php bloginfo('url'); ?>/author/<?php the_author_nickname(); ?>">See All Posts by This Author</a></p> 					<div style="clear:both;"></div>
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [alexasigno](https://wordpress.org/support/users/alexasigno/)
 * (@alexasigno)
 * [17 years ago](https://wordpress.org/support/topic/if-author-doesnt-equal-admin-echo-code/#post-1047983)
 * bump 🙂

Viewing 1 replies (of 1 total)

The topic ‘If author doesn’t equal admin echo [code]’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [alexasigno](https://wordpress.org/support/users/alexasigno/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/if-author-doesnt-equal-admin-echo-code/#post-1047983)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
