Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="content-multipleloop">
- <?php if ( have_posts() ) : ?>
- <?php $temp_count=''; ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- // first post
- $post_count = $wp_query->current_post+1;
- if($post_count == 1){
- echo '<div class="row">
- <div><div class="first-post"><div class="col-sm-6 col-md-4"><h1>1' ;
- echo ''.the_title();'';
- echo '</h1></div>';
- }
- if($post_count == 2 || $post_count == 3 || $post_count == 4 || $post_count == 5 || $post_count == 6 || $post_count == 7 || $post_count == 8 || $post_count == 9 || $post_count == 10){
- $temp_count = $post_count;
- // close the last column and start a new one
- echo '</div><!-- closing '.$post_count.' -->';
- echo '<div id="column-'.$post_count.'">';
- }
- ?>
- <?php if($temp_count == 2) : ?>
- <div class="col-sm-6 col-md-4">
- <h2>2 - <?php the_title(); ?></h2>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 3) : ?>
- <div class="col-sm-6 col-md-4">
- <h3>3 - <?php the_title(); ?></h3>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 4) : ?>
- <div class="col-sm-6">
- <h4>4 - <?php the_title(); ?></h4>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 5) : ?>
- <div class="col-sm-6">
- <h4>5 - <?php the_title(); ?></h4>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 6) : ?>
- <div class="col-sm-6 col-md-12">
- <h1>6 - <?php the_title(); ?></h1>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 7) : ?>
- <div class="col-sm-6 col-md-12">
- <h2>7 - <?php the_title(); ?></h2>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 8) : ?>
- <div class="col-sm-6 col-md-12">
- <h3>8 - <?php the_title(); ?></h3>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 9) : ?>
- <div class="col-sm-6 col-md-12">
- <h4>9 - <?php the_title(); ?></h4>
- </div>
- <?php endif; ?>
- <?php if($temp_count == 10) : ?>
- <div class="col-sm-6 col-md-12">
- <h4>10 - <?php the_title(); ?></h4>
- </div>
- <?php endif; ?>
- <?php
- if($post_count == $wp_query->post_count){
- // close the last column on the page
- echo '</div> <!--END ROW--></div> <!--END ROW--><div class="clear"></div>
- </div><!-- closing last column-->';
- }
- ?>
- <?php endwhile; ?>
- <?php if ($wp_query->max_num_pages > 1) oriont_pagenavi(); ?>
- <?php else : ?>
- <h1 class="entry-title">Nothing Found</h1>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement