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
- 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?
- Template file for static posts page does not get loaded?
- 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
- Get current users post URL?
- Filter posts by author and category simultaneously
- Hide parts of the post content on the home page
- Show post titles only on the homepage
- Displaying Page Title on index.php
- Get all posts by post_author
- Linking to page with all posts
- Authors in menu, template list post by author
- WP rest api returns 404 only when author param is used
- 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
- Show info to author only
- How to make the post summary taller?
- How to get the user meta data for a post?
- Static page does not show my posts
- Restrict users post for himself
- Properly display posts on homepage
- How can I show many posts an author has per week?
- 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
- Show posts by a custom post author
- 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
- Increase 10 post limit per page
- Display Notification Bar on Header on Certain Post Count
- How do I retrieve a users’ last 5 posts?
- obtain the author id given the post id
- 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
- All Posts Linking to Author Posts directly
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- 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
- How to limit author related post listing ?
- Get total post from an author
- I want to show my post for limited time, how is it possible?
- I don’t want the complete article to show on homepage
- Change Author Name to Sitename on Frontend
- Exclude a category of posts in author template
- Get latest author posts inside the loop
- Post is in descendant category not working in home.php
- Authors’ Links on Homepage Not Going to Author Post Pages
- Send email to admin with post author
- how many visitor open this post? [closed]
- What’s a theme that properly handles previews of different types of posts?
- adding my posts (author posts) in menu
- Conditionally exclude post from specific category on home page sidebar?
- Why is WordPress showing a blank excerpt for just one of my posts?
- Restricting displayed posts to posts from only select authors
- Limit front-end submitted posts by role
- Change of author not updating
- Limit Post Creation Count by Author or Role
- Include Recent Post in Category
- How to Make my Homepage Display a Single Specific Post?
- If user has 1 post then dont let him create new one [closed]
- Display post on main page with thumbnail
- Custom author search
- Changing the Category for all posts of an Author
- List of authors posts minus very latest
- How to remove related post from home page
- Post as frontpage – avoid duplicate content
- numberposts not working
- show latest authors blog post
- 404 error on every post and page other than home
- Getting posts from multiple users?
- How Can I Limit Users to Post Creation For My Frontend Theme?
- Display the current post author and his url in the post header
- How to limit the number of results for all query_posts on mysite
- Create a Page Template Which Displays All Posts by Current User
- Trying to display stick or featured post on homepage
- Show last post of employee in his profile page
- limit posts per page
- How to get single post by one author?
- Notify Author of the post if admin deletes his post and perform some function
- how to show all type of author posts in author page (SOLVED)
- How to show total view count across all posts for an author
- How can I add Author’s phone number to wp profile and make it appear in wp-admin/edit.php columns
- Add author section on Author archive posts
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Display content from specific category
- users followin the blog post author