you code may look like this
<?php global $wp_query;
$thepostid = $wp_query->post->ID;
$postdata = get_post($thePostid, ARRAY_A);
$authorid = $postdata['post_author'];
if ($authorid==1)
{
echo 'Show nothing';
}
else
{
?>
<div id="author-bio">
<h3>About The Author</h3>
<?php echo get_avatar( get_the_author_id() , 80 ); ?>
<h4><?php the_author_posts_link(); ?></h4>
<div class="desc"><?php the_author_meta('description'); ?> </div>
</div>
<?php
}
?>
Related Posts:
- How To Remove The Author(s) From Certain Posts
- Conditional/Check: IF author has no First Name THEN
- Condition within single.php to send an email to the post author
- How to conditionally output to sidebar of each author’s archive and posts by each author?
- If statement for is_author of a post
- How to check if a user (not current user) is logged in?
- Woocommerce: assign an “author” to a product
- Programatically change post author
- Restrict one post per author
- Author page: Comments and Ratings?
- Add rewrite endpoint to author page + pagination
- How can an author be subscribed to the posts of another author and receive notifications of the new posts?
- Exclude custom function content from certain pages
- How we can get the author ID by its Name
- How to hide posts count and posts of other users from edit.php for contributors and authors
- Creating distinct pages for author profiles and lists of posts by author
- Making WordPress author follow button, need missing ingredient
- Get the comment author ID by the comment ID
- Author profile visitors in last 7 days in front end without plugins
- Remove /author/ from the author profile url
- Google Authorship on a multi-author blog?
- Change author base slug to user role
- Display Author role in archive or author page
- How to Add Author Editing Capability to Existing Post by Admin
- Limit REST API output to current logged in user that is also author of the content
- Display only entire most recent post on author page?
- Author list ‘special’ author first then ‘normal’ author
- hide something in single page if current author has only one post
- get_the_author_meta( $field, 0 ) returns the administrator $field
- Display Footer Shortcode Different for Logged In Users
- Showing author’s page with no posts
- Plugin for an author bio popup box?
- How to link to the current User/Author Profile page?
- Author website URL
- How can I get the author description’s excerpt?
- How to use Buddypress xProfile field as WordPress Bio
- What do you put in child themes author tag?
- Make user as Default contributor for all Blog Posts
- How to list the authors of all revisions?
- Link Author’s Website in Author Bio
- Conditional Tags Based on Previously Viewed Posts
- Post list based on the page author
- How to set post author to custom post field via front-end form?
- Show Author information on post page on dashboard
- Display emails of users who already posted at least once
- Get author’s first name
- Display only author posts in dashboard all posts panel
- Get avatar of the logged-in user in WordPress
- Conditional for a Single Post That Belongs to a Category?
- How to conditionally hide author name on Single.php if category is “news”, otherwise if category is something else display author name?
- Breadcrumbs – get the author?
- Display author name, outside the loop, if they haven’t published a custom post
- Is author.php a core file?
- Allow Google crawler to crawl specific Author pages
- Clean links in: the_author_meta(‘description’)
- Add Date and Author to Posts
- How to restrict an author scheduling their post date to a maximum X days ahead from the current date
- Different posttypes for different authors
- Why might conditionals not work on a page?
- static landing page leading to author specific pages w/ “live” content
- Add class to DIV depending on page loaded
- Create an Author Page on Registration
- author slug in the backend
- Can I Include author login in post class?
- Disable WordPress Comment Author Name
- get the headlines of the authors’ last post
- Multidimensional Array
- Working with Gravatars within a localhost development area
- Author Page Create Link to Page That Lists All Author’s Posts?
- Unpublish Authors With not Fulfilled Fields
- Display Recent Posts in BuddyPress Profile
- Display All Authors only
- Display Authors avatars when more than one author
- How to reorder the content of the single post?
- Possible to switch between admin view and author view?
- How to show author page link
- How to get type of archive whether it is post or date or category archive?
- Add Post Author body class to WordPress
- Improving Co-Authors Plus Plugin [closed]
- Show Published and Draft posts from Logged in Author
- WHen I click on post author (on frontend) it doesn’t go to author page
- List of all authors avatars
- How to fix a specific page (author archive) loading speed?
- How can I check the rewrite slug of current post type listing page
- Show text only to the author of the article
- Display Random Post in Author Page
- Show author image at home page latestest posts plugin
- Open the_author_link() in a new window
- WordPress author box
- Help with if else statement for separating content from image attachment
- Show author name not the author ID
- Author page link in comments is different than in posts?
- Author.php display profile for all types of users
- Author Link Not Displaying
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- Profile Field In Admin Bar
- Weird html output of single_cat_title – is not inside of the html element?
- why is there an author.php
- How to force the Author Dropdown to display in Quick/Bulk edit?
- How to add avatar to authors list?