Advertisement
Guest User

Different posts

a guest
Aug 21st, 2013
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php if (have_posts()) : $postCount = 1; while (have_posts()) : $postCount++; ?>
  2.  
  3. <?php if($postCount == 2) { ?>
  4. <div class="container">
  5.     <div class="inner_box">
  6.         <ul>
  7.             <div class="title">
  8.                 <a href="<?php the_permalink();?>">
  9.                     <?php the_title(); ?>
  10.             </div>
  11.         <?php the_content(); ?>
  12.         </a>
  13.         </ul>
  14.     </div>
  15.             <div class="up"></div>
  16. </div>
  17. <?php } else { ?>
  18. <div class="container">
  19.     <div class="inner_box">
  20.         <ul>
  21.             <div class="title">
  22.                 <a href="<?php the_permalink();?>">
  23.                     <?php the_title(); ?>
  24.             </div>
  25.         <?php the_content(); ?>
  26.         </a>
  27.         </ul>
  28.         <div class="down"></div>
  29.     </div>
  30. </div>
  31. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement