[affiliates_show_list] shortcode

With this shortcode you can display a list of affiliates anywhere.
Add this code in your functions.php file and you could use the shortcode [affiliates_show_list]

add_shortcode( 'affiliates_show_list', 'affiliates_show_list' );
function affiliates_show_list( $atts ) {
global $wpdb;
$affiliates = affiliates_get_affiliates();
$output = "";
if ( is_array( $affiliates ) && ( sizeof( $affiliates ) > 0 ) ) {
$output .= '<ul>';
foreach ( $affiliates as $affiliate ) {
$output .= '<li>' . $affiliate['name'] . '</li>';
}
$output .= '</ul>';
}
return $output;
}

This is an extra function to Affiliates plugin by @itthinx.