Display list of uploaded images, filtered by user under a specific user group
This example loops through all photographers and then displays all images uploaded by them: <ul> <?php $photographers = get_users( ‘role=photographer’ ); foreach( $photographers as $user ) : $pictures = new WP_Query( array( ‘author’ => $user->ID, ‘post_type’ => ‘attachment’, ‘post_status’ => ‘inheret’, ‘posts_per_page’ => -1 ) ); echo ‘<li><h3>’ . $user->user_nicename . ‘</h3>’; if ( $pictures->posts … Read more