[theme-reviewers] Feedback on use of query_posts please - Bad idea?
zulfikarnore at live.com
Sat Sep 14 00:22:36 UTC 2013
I've read around that using query_posts is bad but I've seen many a themes using it and get away with it.
My case is I'm trying to put together a template-blog.php for StrapVert and this is what I've come up with so far:
add_filter('option_show_on_front', '__return_false'); global $wp_query; query_posts(array( 'paged' => $wp_query->get('paged'), 'post__not_in' => get_option('sticky_posts'), ));
global $more; $more = 0; get_template_part('index-blog'); $more = 1;remove_filter('option_show_on_front', '__return_false');
But before I add these changes to the theme and submit an update I'd like some feedback on "How Really Bad" is query_posts and can I "get away" with the above?
Thanks in advance,Zulf
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers