Template tag to Show Author Specific Posts

You can use the following template tag in any of your theme’s template file to show the Posts/Custom Post Types written by specific Author/s in the SliderVilla Slider or exclude specific Author Posts from the Slider

Include Posts by single author with User ID 2

<?php if ( function_exists( 'get_slidervilla_slider_taxonomy' ) ) { $args=array('slider'=>'roster','post_type'=>'post', 'taxonomy'=>'category','term'=>'social-media', 'set'=>'1', 'offset'=>0 , 'data'=>array('author'=>'2'));
get_slidervilla_slider_taxonomy($args);
}
?>

INCLUDE POSTS by Multiple AUTHORs WITH USER ID 1,2,4

<?php if ( function_exists( 'get_slidervilla_slider_taxonomy' ) ) { $args=array('slider'=>'roster','post_type'=>'post', 'taxonomy'=>'category','term'=>'social-media', 'set'=>'1', 'offset'=>0 , 'data'=>array('author'=>'1,2,4'));
get_slidervilla_slider_taxonomy($args);
}
?>

Exclude POSTS BY Author with USER ID 5

<?php if ( function_exists( 'get_slidervilla_slider_taxonomy' ) ) { $args=array('slider'=>'roster','post_type'=>'post', 'taxonomy'=>'category','term'=>'social-media', 'set'=>'1', 'offset'=>0 , 'data'=>array('author'=>'-5'));
get_slidervilla_slider_taxonomy($args);
}
?>

Kindly pay attention that the user ID is written as -5 above for the author parameter.

How to : How to find the User ID of the Author in WordPress