Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) == 0) : $wp_query->next_post(); else : the_post(); ?>
- <div class="post">
- <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
- <?php
- if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- }
- ?>
- <?php the_content('Read more'); ?>
- </div><!-- POST DIV END -->
- <?php endif; endwhile; else: ?>
- <?php endif; ?>
- </div><!-- CONTENT-COLUMN-1 END -->
- <?php /* REWIND */ $i = 0; rewind_posts(); ?>
- <div class="col_4 margin-top-20 last">
- <?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) !== 0) : $wp_query->next_post(); else : the_post(); ?>
- <div class="post">
- <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
- <?php
- if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- }
- ?>
- <?php the_content('Read more'); ?>
- </div>
- <?php endif; endwhile; else: ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement