SHARE
TWEET

Untitled

a guest Jul 8th, 2010 90 Never
  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(); ?>
RAW Paste Data
Top