• 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='https://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)
Viewing 1 replies (of 1 total)
  • The topic ‘If author doesn’t equal admin echo [code]’ is closed to new replies.