prove php

[insert_php]
$args = array(
‘role’ => ‘Contributor’
);

$user_query = new WP_User_Query( $args );
$html = ”;

if ( !empty( $user_query->results ) ) {

$html = ‘

    ‘ . “\n”;
    foreach ( $user_query->results as $user ) {

    $nicename = $user->user_nicename;
    $display_name = $user->display_name;
    $author_url = home_url() . ‘/author/’ . $nicename;

    $html .= sprintf( ‘

  • %s
  • ‘, $author_url, $display_name );

    }
    $html .= ‘

‘ . “\n”;
}
echo $html;
[/insert_php]