array ( 'news' ), 'post_status' => array ( 'publish' ), 'posts_per_page' => ( !empty( $instance['scmod_news_limit'] ) ? (int)$instance['scmod_news_limit'] : -1 ), ); // The Query $news = new WP_Query( $args ); // The Loop if ( $news->have_posts() ) : ?>

have_posts() ) : $ctr++; $news->the_post(); ?>