I am having problems with post__in shortcode atts. It does not show anything. I think the problem is that post__in must be an array but the shortcode ID returns string.
function courses_shortcode($atts) {
extract(shortcode_atts( array(
'limit' => 16,
'id' => array(592, 862, 418, 491, 1227, 1015, 847, 738, 541, 1186, 664, 695, 785),
), $atts ));
$q_courses = new WP_Query( array(
'post_type' => array('course'),
'posts_per_page' => $limit,
'post__in' => $id,
'orderby' => 'post__in',
));
add_shortcode('video-course', 'courses_shortcode');
The problem is that if I do [video-course limit=8 id="418, 1186"] does not show anything. Limit is working but the ID is not.