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 Jul 8th, 2010  |  syntax: PHP  |  size: 0.60 KB  |  views: 89  |  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.  
  4. <div id="content">
  5. <?php
  6. $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
  7. $mainQuery = new WP_Query();
  8. $mainQuery->query("showposts=10&orderby=date&order=DESC&paged=$page");
  9.  
  10. ?>
  11. <?php while ($mainQuery->have_posts()) : $mainQuery->the_post(); //main query was returning randomly ordered posts ?>
  12.  
  13.   <?php //if (have_posts()) : while (have_posts()) : the_post(); ?>
  14.  
  15.   <?php include (STYLESHEETPATH . '/includes/loop.php'); ?>
  16.  
  17.   <?php endwhile; ?>
  18.   <?php numeric_pagination(); ?>
  19.  
  20. </div>
  21. <!--/content-->
  22. <?php get_sidebar(); ?>
  23. <?php get_footer(); ?>
clone this paste RAW Paste Data