<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>because he’s probably making a ‘page’ that is off the /index/home/ it’s a
template... i.e. not the landing, lotsa people do this ;/ splash page in
the front, link in menu to the actual blog loop</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=chip@chipbennett.net
href="mailto:chip@chipbennett.net">Chip Bennett</A> </DIV>
<DIV><B>Sent:</B> Friday, September 13, 2013 6:42 PM</DIV>
<DIV><B>To:</B> <A title=theme-reviewers@lists.wordpress.org
href="mailto:theme-reviewers@lists.wordpress.org">Discussion list for WordPress
theme reviewers.</A> </DIV>
<DIV><B>Subject:</B> Re: [theme-reviewers] Feedback on use of query_posts please
- Badidea?</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>Why do you need template-blog.php when there is home.php for
exactly that purpose?</DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Fri, Sep 13, 2013 at 8:22 PM, Zulfikar Nore <SPAN
dir=ltr><<A href="mailto:zulfikarnore@live.com"
target=_blank>zulfikarnore@live.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV>
<DIV dir=ltr>I've read around that using query_posts is bad but I've seen many
a themes using it and get away with it.
<DIV> </DIV>
<DIV>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:</DIV>
<DIV> </DIV>
<DIV>
<DIV>add_filter('option_show_on_front', '__return_false');</DIV>
<DIV> global $wp_query;</DIV>
<DIV> query_posts(array(</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN> 'paged' =>
$wp_query->get('paged'),</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN> 'post__not_in' =>
get_option('sticky_posts'),</DIV>
<DIV> ));</DIV>
<DIV> </DIV>
<DIV> global $more; $more = 0;</DIV>
<DIV> get_template_part('index-blog');</DIV>
<DIV> $more = 1;</DIV>
<DIV>remove_filter('option_show_on_front', '__return_false');</DIV>
<DIV> </DIV>
<DIV> wp_reset_query();</DIV>
<DIV>wp_reset_postdata();</DIV></DIV>
<DIV> </DIV>
<DIV>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?</DIV>
<DIV> </DIV>
<DIV>Thanks in advance,</DIV>
<DIV>Zulf
</DIV></DIV></DIV><BR>_______________________________________________<BR>theme-reviewers
mailing list<BR><A
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A><BR><A
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target=_blank>http://lists.wordpress.org/mailman/listinfo/theme-reviewers</A><BR><BR></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV>
<P>
<HR>
_______________________________________________<BR>theme-reviewers mailing
list<BR>theme-reviewers@lists.wordpress.org<BR>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<BR></DIV></DIV></DIV></BODY></HTML>