I have a page that has three different wp_queries, just like this for different categories:
<?php $my_query = new WP_Query('category_name=next-week&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
It may even increase to 4 or 5 different queries.
Right now it’s taking between 38 and 41 queries to produce the page. Is there a more efficient way to get posts from multiple categories (one post each), then display them on different parts of the page?
thanks for your help or suggestions in advance.
- The topic ‘too many wp_querys slowing page down? how to combine?’ is closed to new replies.