Guest User

Untitled

a guest
Apr 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div>
  4. <?php $count = 0;
  5. if (have_posts()) : while (have_posts()) : the_post();
  6. $count++;
  7. if ( $count < 4 ) { //display of first 3 posts ?>
  8. <div id="featured-<?php echo $count; ?>">
  9.  
  10. <?php echo
  11. "<a href='<?php the_permalink() ?>' rel='bookmark'>
  12. <?php
  13. if ( has_post_thumbnail() ) {
  14. // check if the post has a Post Thumbnail assigned to it.
  15. the_post_thumbnail('medium');
  16. } "
  17. ?></a>
  18. <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  19. <?php the_excerpt(); ?>
  20. </div>
  21.  
  22. <?php }
  23.  
  24. if ( $count == 4 ) { //closes the featured div adds the links in the center then opens the columns div ?>
  25. </div> <!-- /close the featured div -->
  26.  
  27. <div id="columns">
  28. <?php }
  29. if ( $count > 3 && $count < 10 ) { //Next 6 posts ?>
  30.  
  31. <div id="recent-<?php echo $count - 3 ?>">
  32.  
  33. <?php //do stuff here ?>
  34. </div>
  35. <?php }
  36.  
  37. endwhile; endif; ?>
  38. </div> <!-- /end columns -->
  39.  
  40. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment