no, the code is too simple:
<?php echo $wpdb->num_queries; ?>
264 queries ?? Is normal ?
nope, thats pretty damn high if you ask me.
I use 36 different plugins. I use anywhere from 54 to 73 queries on any one of my pages. Im guessing your page load times suck.
i use this code to show 3 loop in the index.php:
<?php $wp_query->query_vars["cat"] = 11; ?>
<?php $wp_query->query_vars["showposts"] = 3; ?>
<?php $wp_query->get_posts(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
if i delete the 3 loop i have 37 queries…
the problem is this code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="postcontent" id="post-<?php the_ID(); ?>">
<h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div class="storycontentgallery">
<?php the_content('Read more...'); ?>
</div>
<!--
<?php trackback_rdf(); ?>
-->
<br />
<br />
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endwhile; else: ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php endif; ?>
if i delete this i have 250 queries less
i’ve found the problem!! This plugin fuck the queries:
WP Automatic Reference
Now i have 58 queries for the homepage, 40 for the rest
i think anything less than 50 is ok