This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 25th, 2011  |  syntax: None  |  size: 2.19 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php get_header(); ?>
  2.  
  3. <!-- begin colLeft -->
  4.        
  5. <div id="column_01">
  6.    // NEWER //
  7. <?php query_posts('showposts=5'); ?>
  8. <?php $posts = get_posts('numberposts=5&offset=0'); foreach ($posts as $post) : start_wp(); ?>
  9. <?php static $count1 = 0; if ($count1 == "5") { break; } else { ?>
  10.  
  11. <div class="thumbnail_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?> <?php comments_popup_link('(0)', '(10)', '(%)'); ?></a></div>
  12.         <div class="thumbnail_date"><?php the_time('M') ?> <?php the_time('j') ?>, <?php the_time('Y') ?> (<?php print_page_views(get_the_ID('')); ?> views)</div>
  13.                                 <div class="postThumb"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a></div>
  14.                                
  15.  
  16. <?php $count1++; } ?>
  17. <?php endforeach; ?>
  18. </div>
  19.  
  20. <div id="column_wrap">
  21.  
  22. <div id="column_02">
  23. to
  24. <?php query_posts('showposts=5'); ?>
  25. <?php $posts = get_posts('numberposts=5&offset=5'); foreach ($posts as $post) : start_wp(); ?>
  26. <?php static $count2 = 0; if ($count2 == "5") { break; } else { ?>
  27.  
  28. <div class="thumbnail_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?> <?php comments_popup_link('(0)', '(10)', '(%)'); ?></a></div>
  29.         <div class="thumbnail_date"><?php the_time('M') ?> <?php the_time('j') ?>, <?php the_time('Y') ?> (<?php print_page_views(get_the_ID('')); ?> views)</div>
  30.                                 <div class="postThumb"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a></div>
  31.  
  32. <?php $count2++; } ?>
  33. <?php endforeach; ?>
  34. </div>
  35.  
  36. <div id="column_03">
  37. // OLDER //
  38. <?php query_posts('showposts=5'); ?>
  39. <?php $posts = get_posts('numberposts=5&offset=10'); foreach ($posts as $post) : start_wp(); ?>
  40. <?php static $count3 = 0; if ($count3 == "5") { break; } else { ?>
  41.  
  42. <div class="thumbnail_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?> <?php comments_popup_link('(0)', '(10)', '(%)'); ?></a></div>
  43.         <div class="thumbnail_date"><?php the_time('M') ?> <?php the_time('j') ?>, <?php the_time('Y') ?> (<?php print_page_views(get_the_ID('')); ?> views)</div>
  44.                                 <div class="postThumb"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a></div>
  45.  
  46. <?php $count3++; } ?>
  47. <?php endforeach; ?>
  48. </div>
  49.        
  50.         </div>
  51.  
  52.  
  53.  
  54.  
  55. <?php get_footer(); ?>
clone this paste RAW Paste Data