$bueno_sl_num,
'category_name' => esc_attr(of_get_option('sl_category')),
'ignore_sticky_posts' => 1
);
$bueno_slider_query = new WP_Query( $bueno_sl_args );
$bueno_checkthumb = 0;
while ( $bueno_slider_query->have_posts() ) : $bueno_slider_query->the_post();
if(has_post_thumbnail( $post->ID )){
$bueno_checkthumb = 1;
}
endwhile;
if( $bueno_slider_query && ( 1 == $bueno_checkthumb ) ){
?>
have_posts() ) : $bueno_slider_query->the_post();
$bueno_sl_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'slider-post-thumbnail');
?>
ID )){
?>
-