$cat_id, 'posts_per_page' => absint( $latest_num ), ); } else { $id = array(); for ( $i=1; $i <= $latest_num; $i++ ) { $id[] = get_theme_mod( "blog_lover_recent_posts_{$latest}_" . $i ); } $args = array( 'post_type' => $latest, 'post__in' => (array)$id, 'orderby' => 'post__in', 'posts_per_page' => absint( $latest_num ), 'ignore_sticky_posts' => true, ); } $query = new WP_Query( $args ); $i = 1; if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); $read_more = get_theme_mod( 'blog_lover_recent_posts_more_' . $i, $default['blog_lover_recent_posts_more'] ); ?>
'; endif; ?>