3 corrected the code according to the person's code
source | link

If I understand your problem then this should be your code most probablydefinitely work. , give it a try

<?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();
?>

this should be your code most probably , give it a try

<?php 
$users = get_users( array( 'who' => 'author' ) );

foreach ( $users as $user ) {
$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;

} 
?>

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();
?>
2 added 123 characters in body
source | link

this should be your code most probably , give it a try

<?php 
$users = get_users( array( 'who' => 'author' ) );

foreach ( $users as $user ) {
$query = new WP_Query( array(
                            'posts_per_page'=>1, 
                            'author' => $user->ID
                            ) 
                    );
if($query->have_posts()):while($query->have_posts()):$query->the_post();

// your codeget_template_part('content', goes'postlist'); here


endwhile;

else:
get_template_part('content', 'none'); 
endif;

} 
?>

this should be your code most probably , give it a try

<?php 
$users = get_users( array( 'who' => 'author' ) );

foreach ( $users as $user ) {
$query = new WP_Query( array(
                            'posts_per_page'=>1, 
                            'author' => $user->ID
                            ) 
                    );
if($query->have_posts()):while($query->have_posts()):$query->the_post();

// your code goes here


endwhile;
endif;

} 
?>

this should be your code most probably , give it a try

<?php 
$users = get_users( array( 'who' => 'author' ) );

foreach ( $users as $user ) {
$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;

} 
?>
1
source | link

this should be your code most probably , give it a try

<?php 
$users = get_users( array( 'who' => 'author' ) );

foreach ( $users as $user ) {
$query = new WP_Query( array(
                            'posts_per_page'=>1, 
                            'author' => $user->ID
                            ) 
                    );
if($query->have_posts()):while($query->have_posts()):$query->the_post();

// your code goes here


endwhile;
endif;

} 
?>