• Hello,

    I have setup a template loop that uses

    $the_queryb = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');
    
    		$counter = 0; $counter2 = 0;
    
    		while ($the_queryb->have_posts()) : $the_queryb->the_post(); $do_not_duplicate = $post->ID;

    to query the DB and display posts,

    the trouble is that it is giving me poor results,
    I traced it down to ‘request’ including a GROUP BY ID added on by query.php

    when I remove that one piece of the WHERE statement it returns results properly (I hacked my query.php file to do this)

    my question is what am I doing wrong that my results are so far off,
    this same loop works properly on an older version of WordPress so I’m thinking I missed something between 2.0 and 2.6 that has changed

    can anyone offer me some advice?

  • The topic ‘WP_Query & have_posts not returning newest posts?’ is closed to new replies.