Wordpress loop with different bootstrap columns
问题 i need to create a wordpress loop where the first post will be col-md-12 and the next 4 posts will be col-md-6 <div class= "col-md-12"> </div> <div class= "col-md-6"> </div> <div class= "col-md-6"> </div> <div class= "col-md-6"> </div> <div class= "col-md-6"> </div> and then <div class= "col-md-12"> </div> <div class= "col-md-6"> </div> <div class= "col-md-6"> </div> <div class= "col-md-6"> </div> <div class= "col-md-6"> </div> 回答1: may be this can help : <?php if ( have_posts() ) { $counter