Advertisement
Guest User

Untitled

a guest
Apr 9th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  1. <?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) == 0) : $wp_query->next_post(); else : the_post(); ?>
  2. <div class="post">
  3. <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  4. <?php
  5. if ( has_post_thumbnail() ) {
  6.   the_post_thumbnail();
  7. }
  8. ?>
  9.  
  10. <?php the_content('Read more'); ?>
  11. </div><!-- POST DIV END -->
  12.  
  13.  
  14. <?php endif; endwhile; else: ?>
  15. <?php endif; ?>
  16.  
  17.  
  18. </div><!-- CONTENT-COLUMN-1 END -->
  19.  
  20.  
  21. <?php /* REWIND */ $i = 0; rewind_posts(); ?>
  22.  
  23.  
  24. <div class="col_4 margin-top-20 last">
  25. <?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) !== 0) : $wp_query->next_post(); else : the_post(); ?>
  26. <div class="post">
  27. <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  28. <?php
  29. if ( has_post_thumbnail() ) {
  30.   the_post_thumbnail();
  31. }
  32. ?>
  33.  
  34.  
  35. <?php the_content('Read more'); ?>
  36.  
  37. </div>
  38. <?php endif; endwhile; else: ?>
  39. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement