[theme-reviewers] Mini-Site Theme query_posts use
Philip M. Hofer (Frumph)
philip at frumph.net
Mon Aug 30 14:59:15 UTC 2010
Nevermind I see it, header.php has
//The Query
query_posts('posts_per_page=10');Which basically overrides any common loop that occures then does a wp_reset_query(), he should be protecting that loops $wp_query and restarting the old wp_query after that loop of links happens.$temp_wp_query = $wp_query;<code>$wp_query = temp_wp_query;sort of thing.*or* not use query_posts and creates a new WP_Query which is the better way of handling that.----- Original Message -----
From: Chip Bennett
To: theme-reviewers at lists.wordpress.org
Sent: Monday, August 30, 2010 7:50 AM
Subject: [theme-reviewers] Mini-Site Theme query_posts use
Can someone take a look at the MiniSite Theme for me? It's making a ton of query_posts() calls. I'm wondering if they're really necessary?
Chip
------------------------------------------------------------------------------
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100830/b9778606/attachment-0001.htm>
More information about the theme-reviewers
mailing list