custom query issue
-
i’m trying to run this custom query
<?php $recent = new WP_Query(); $recent->query('category_name=video&showposts=1'); while($recent->have_posts()) : $recent->the_post();?> <div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div> <?php endwhile; ?>
no matter what i change the value of showposts too, it still returns all there are.
there’s no standard loop on the page. this is at the very top of the page. it’s the first wp_query() called, however i’m having the same problem on all the wp_wuery() calls that follow..
thanks.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘custom query issue’ is closed to new replies.