We are using this code to see if the user has posted, however we wish to exclude admins. Currently if the role is admin, the function returns a post count.
<?php
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'author' => get_the_author_meta('ID'),
'fields' => 'ids',
);
$wp_posts = get_posts($args);
if(count($wp_posts)) : ?>
I tried 'role' => 'contributor'
in the $args
but the admin is still being included.