of_get_option( 'slide_postnumber', '5' ), 'post_type' => 'post', 'cat' => of_get_option( 'slide_postcategory', 'no entry' ));
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
$i = 0;
while ( $the_query->have_posts() ) : $the_query->the_post();
$i++;
if ( $i == 1 ) {
echo '
';
}
echo '
';
if ( $i % 1 == 0 && $i != of_get_option( 'slide_postnumber', '3' ) ) {
echo '
'; }
endwhile;
echo '
';
wp_reset_postdata();
endif;
?>