WP_User_Query to exclude users with no posts
Well I have come up with 2 solutions. Solution 1 – foreach loop and verify each user This one is based off of @GhostToast’s solution, but with updated WordPress functions //new query with default args $author_query = new WP_User_Query(); // Get the results $authors = $author_query->get_results(); if( $authors ) { foreach( $authors as $author ) … Read more