<?php global $post; $args = array( 'posts_per_page' => 5, 'post_type'=> 'feature', 'orderby' => 'menu_order', 'order' => 'ASC' ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <div class="col-md-4"> <div class="single-intro"> <div style="background-image: url(<?php the_post_thumbnail_url('large'); ?>);" class="intro-img"></div> <div class="intro-details text-center"> <h3><?php the_title(); ?></h3> <p><?php the_content(); ?></p> </div> </div> </div> <?php endforeach; wp_reset_query(); ?>
Leave a Reply