If I understand your problem then this should definitely work.
<?php
get_header();
$users = get_users( array( 'who' => 'author' ) );//get all the users with author role in an array
foreach ( $users as $user ) { //travers the array
if($user->caps['administrator']==1)continue; // skip the user if user also have administrative capabilities
$query = new WP_Query( array(
'posts_per_page'=>1,
'author' => $user->ID
)
);
if($query->have_posts()):while($query->have_posts()):$query->the_post();
get_template_part('content', 'postlist');
endwhile;
else:
get_template_part('content', 'none');
endif;
}
get_footer();
?>
Related Posts:
- How can I set a maximum allowed post size and number of posts submitted?
- Set the limit to allow author when make post!
- Keep featured content post in homepage with original order
- Hook that get’s triggered when the author of a post is changed
- the_author() returns empty string
- Prevent Authors from viewing each others Posts
- Display Random Author with Details in Sidebar
- Different number of posts in each category
- How to show list of posts by author and category?
- WordPress: How to get the current logged in author page URL?
- How to add editor’s name to entry meta byline?
- Different permalink for posts and authors
- How to limit user to publish post per day and per role?
- Template file for static posts page does not get loaded?
- How to display posts by current user/author in a custom page template?
- Restrict users from editing post based on the age of the post
- Query posts distinct authors
- Restrict access to post if it is currently being edited
- Restrict the Number of Posts an Author can Publish (over time)?
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- Search posts by post author name
- how to display full post with pagination on home page
- Get the user type of an author
- Show the title of the latest post by author
- Find most recent authors
- Show author post count in sidebar – Variable
- Get current users post URL?
- Get the author of the latest revision
- Filter posts by author and category simultaneously
- Custom Post Type & Author not associating, user post count is 0, api doesn’t return author in post objects
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- How can I specify a category post on my home page
- Hide parts of the post content on the home page
- Show post titles only on the homepage
- Post author is changed to admin after his post is modified by admin
- Displaying Page Title on index.php
- Get all posts by post_author
- Linking to page with all posts
- How can I control multiple editing of wordpress posts?
- Multiple authors for single post without plugin
- Limit number of posts a user can make per minute?
- How to link up “read more” on excerpts hack from WP Recipies
- Authors in menu, template list post by author
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- Author must complete profile info before they can publish a post?
- WP rest api returns 404 only when author param is used
- How can I list random authors from current post category?
- WP_Query posts_per_page ignored
- Can I set and show “important” post in my blog?
- How can I remove posts of a certain category from homepage after a specified time period?
- Limiting the number of posts in WP_Query leads to unexpected result
- How can I show wordpress posts based on author?
- Show info to author only
- How to make the post summary taller?
- Auto “expire” all of an authors posts on spcific date
- How to get the user meta data for a post?
- Static page does not show my posts
- Guest Author – How to display posts on /author/ archive page
- Restrict users post for himself
- Properly display posts on homepage
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How can I show many posts an author has per week?
- How to give capability (publish contributors posts) to author role?
- How to show last post of each website of a MU wordpress in HomePage
- Whitelist Author of Private Post
- How to limit posts by category
- Move first half of posts to one parent page, second half to the other page
- Show posts by a custom post author
- How can i limit the number of posts created per category?
- How do I display some posts fully on the homepage, and some as an excerpt only?
- Editing the default page to show all posts, rather than most recent ones
- Getting the current author (it has changed) of a post, not the original author
- Showing author page if user has no post
- Increase 10 post limit per page
- Display Notification Bar on Header on Certain Post Count
- How do I retrieve a users’ last 5 posts?
- Hide posts belongs to few categories in homepage
- obtain the author id given the post id
- Show comment number per author per day
- What file is the standard frontpage that lists all the posts?
- Get all comments of author’s posts
- (solved) getting post author’s user role
- Change all author links in Blog roll
- Display author’s name and avatar in post’s sidebar
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Loop doesn’t exclude the specified category in home page
- query post limits
- static landing page leading to author specific pages w/ “live” content
- If contributor has published 2 or more posts then show otherwise hide
- Single Post in Tab/Slider
- All Posts Linking to Author Posts directly
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Change post author without using wp_update_post()
- Is it possible to lock all new and existing WordPress posts to one specific author?
- How to get the ability to change the author of a post
- Echo Text If User Is Logged in But NOT the Author of post
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- Add hero image to home page (blog format) via the dashboard
- Custom home page with full post for first one only
- Custom Post Limit for homepage only without plugin?