Hi. Good evening to all.
I just upgrade to the last release of wordpress and something happened..
I have the following code
<div id="thumbnails"> <?php $the_query = new WP_Query('category_name=' . '&showposts=200&cat=304&orderby=date&order=desc'); $counter = 0; while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <div id="shop149clean"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php if ( has_post_thumbnail() ) the_post_thumbnail( 'mini144-thumb' ); ?></a> </div> <?php endwhile; ?> </div>
the results of that you can see properly in this page
But, when I want to create a page template, if I add the same code to the template, something very weird happens, which is that the last POST gets duplicated in the first position, while the first post dissappears…
Check what I mean here
Does anybody know why this happens????
Thank you very much
- The topic ‘Problem with Wp-query’ is closed to new replies.