Advertisement
Guest User

Error on get_footer()

a guest
Aug 21st, 2013
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. get_header(); ?>
  5.  
  6.  
  7. <!-- start container -->
  8.  
  9. <?php if (have_posts()) : $postCount = 1; while (have_posts()) : $postCount++; ?>
  10.  
  11. <?php if($postCount == 2) { ?>
  12. <div class="container">
  13.     <div class="inner_box">
  14.         <ul>
  15.             <div class="title">
  16.                 <a href="<?php the_permalink();?>">
  17.                     <?php the_title(); ?>
  18.             </div>
  19.         <?php the_content(); ?>
  20.         </a>
  21.         </ul>
  22.     </div>
  23.             <div class="up"></div>
  24. </div>
  25. <?php } else { ?>
  26. <div class="container">
  27.     <div class="inner_box">
  28.         <ul>
  29.             <div class="title">
  30.                 <a href="<?php the_permalink();?>">
  31.                     <?php the_title(); ?>
  32.             </div>
  33.         <?php the_content(); ?>
  34.         </a>
  35.         </ul>
  36.         <div class="down"></div>
  37.     </div>
  38. </div>
  39. <?php } ?>
  40.  
  41.  
  42.  
  43.     <!-- end post -->
  44.  
  45. <?php endwhile; ?>
  46. <!-- end container -->
  47.  
  48. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement