$args = array(
'posts_per_page' => 1,
'author' => $author->ID
);
$posts = new WP_Query( $args );
$count = count( $posts );
Put this right after the foreach, $count will now contain either 1 or 0, put it through an if statement to filter the output.
Related Posts:
- Add gravatar to author list
- Display email address field next to author in wp_dropdown_users
- How can I list all WordPress users, their email adress, post title and post status?
- how to randomly list 5 authors with at least 3 published posts
- How to do a WP_User_Query in WordPress 3.0.1?
- how to add around each author using wp_list_authors
- Adding custom column in User List with custom action
- Get all authors with at least one post of ‘custom post type’
- How can i list current author’s categories?
- Pagination Help on Crazy Custom Authors Page
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- List total number of users that are authors
- Authors Page : A page of authors
- List authors of site with link and gravatar
- Display all authors and their only one latest post
- Author List page: Exclude based on last post date
- wp_list_authors including custom post types
- Show list of authors with latest post NOT older than a month
- wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- How can I list random authors from current post category?
- Get List of all the Authors
- Custom Author Loop
- How can i list random post from multiple category?
- Posts with multiple authors with different roles
- Automatically adding categories and authors in custom menu?
- Authors list Pagination?
- Count author posts in certain category
- implement authentication and authorization to user
- Remove admin role from the “Author” user listing on individual post screen
- Display Authors in a grid loop
- author list not linking to correct page
- Different values for get_author_posts_url and get_the_author (posts 2 posts)
- What does the class look like that is returned from WP_User_Query?
- How can I show the author’s latest post with title?
- How to create pagination for users list using custom array?
- Author’s Id from wp list authors function
- How can I list posts by author?
- Combining wp_list_authors with get_user_meta
- Order users by user role
- Filter to wp_list_authors
- wrap a span tag around author’s post count
- wp_list_authors() returning the wrong member url
- I’m trying to create a custom version of the wp_list_authors function that includes custom post types
- Filter authors on meta value
- Recent Posts Listed by Author, Can I exclude authors?
- The loop does not show users
- Comment_author_url doing nothing
- Listing wordpress users with a search function
- How can i list random author?
- Display all authors in a theme template
- Add formatting to Array
- How to show list authors with at least five posts published
- Latest 5 post excerpts from 5 different authors in Sidebar
- How to get authors who have added the post in the specific custom post type
- co-authors plugin – inline listing
- List of all authors avatars
- Probleme shortcode with list author
- Get top authors for the last 30 days with posts count and avatar
- Author social media aren’t shown on the page
- Top Authors list by highest post views with Ajax pagination
- Why is wp_list_authors not picking up Authors from CPT’s?
- WordPress For Loop Prints Unwanted Extra Paragraph Element
- List Authors For Current Category
- Include administrator in author list
- Placing generated list into drop-down on custom menu
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- How can i do custom author list?
- Exclude Authors based off date of last post
- Author Link in Recent Posts Widget
- Exclude Author by ID
- Show the most recent post for an author on the author page
- Uncode theme, create author page and author link under the blog
- list all authors outside of loop with photo from /uploads
- How to add avatar to authors list?