<div dir="ltr">Both front-page.php and home.php are templates, defined in the Template Hierarchy. What they are not, however, is custom static-page templates. WordPress provides a core method to assign a static page to the front page and to display the blog posts index, and the Template Hierarchy defines which template files are used to render those contexts.<div>
<br></div><div>To answer your specific question: when a user selects "static page" for "front page displays, and then assigns static pages to the front page and posts page, WordPress will use front-page.php to render the front page, and home.php to render the posts page.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 10:27 PM, Zulfikar Nore <span dir="ltr"><<a href="mailto:zulfikarnore@live.com" target="_blank">zulfikarnore@live.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Neither of which are templates.<div><br></div><div>front-page.php will be picked up first so where will home.php fit in?</div><div><br><br><div><hr>Date: Fri, 13 Sep 2013 22:24:49 -0400<div><div class="h5">
<br>From: <a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a><br>To: <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>Subject: Re: [theme-reviewers] Feedback on use of query_posts please  -Badidea?<br>
<br><div dir="ltr">That other page is... (wait for it...)<div><br></div><div>home.php</div></div><div><br><br><div>On Fri, Sep 13, 2013 at 10:23 PM, Philip M. Hofer (Frumph) <span dir="ltr"><<a href="mailto:philip@frumph.net" target="_blank">philip@frumph.net</a>></span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<div>Okay so you have it "HALF” right .</div>
<div> </div>
<div>the second part of that is to have the BLOG LOOP on another PAGE</div>
<div> </div>
<div>get it yet?</div>
<div> </div>
<div> </div>
<div> </div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="chip@chipbennett.net" href="mailto:chip@chipbennett.net" target="_blank">Chip Bennett</a> </div>
<div><b>Sent:</b> Friday, September 13, 2013 7:14 PM</div><div><div>
<div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></div><div><div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div dir="ltr">No, I think I have it exactly: 
<div> </div>
<div>"<span style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px">But I've had 
a lot of requests for options to hide certain sections and one of them <b>was 
the blog feed on front page</b>."</span></div></div>
<div><br><br>
<div>On Fri, Sep 13, 2013 at 10:12 PM, Philip M. Hofer 
(Frumph) <span dir="ltr"><<a href="mailto:philip@frumph.net" target="_blank">philip@frumph.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex">
  <div dir="ltr">
  <div dir="ltr">
  <div style="FONT-FAMILY:'Calibri';FONT-SIZE:12pt">
  <div>Yeah, you’re not getting it.</div>
  <div> </div>
  <div>It’s not for the front page </div>
  <div> </div>
  <div> </div>
  <div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
  <div style="FONT:10pt tahoma">
  <div> </div>
  <div style="BACKGROUND:#f5f5f5">
  <div><b>From:</b> <a title="chip@chipbennett.net" href="mailto:chip@chipbennett.net" target="_blank">Chip Bennett</a> </div>
  <div><b>Sent:</b> Friday, September 13, 2013 7:11 PM</div>
  <div>
  <div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">Discussion 
  list for WordPress theme reviewers.</a> </div></div>
  <div>
  <div>
  <div><b>Subject:</b> Re: [theme-reviewers] Feedback on use of query_posts 
  please - Badidea?</div></div></div></div></div>
  <div> </div></div>
  <div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
  <div>
  <div>
  <div dir="ltr">index.php is NOT the front page template, and should not be used 
  as such. It is the default fallback template. 
  <div> </div>
  <div>Use front-page.php for your front page template, and home.php for your 
  blog posts index template. Then all of your issues go away, magically. 
  :)</div></div>
  <div><br><br>
  <div>On Fri, Sep 13, 2013 at 9:48 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">
    <div>
    <div dir="ltr">I'm using the index.php showing featured content at the top 
    followed by the blog feed - which works fine and I had planned to stick with 
    that. But I've had a lot of requests for options to hide certain sections 
    and one of them was the blog feed on front page. 
    <div> </div>
    <div>template.blog.php is to open the option to still have a page with the 
    blog feed on it when the user has opted to hide them on the front.</div>
    <div> </div>
    <div>Long story short - user hides posts on front but still wants a blog fed 
    page and this is my attempt to fill that need.<br><br>
    <div>
    <hr>
    Date: Fri, 13 Sep 2013 21:42:43 -0400<br>From: <a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a><br>To: <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a> 
    <div><br>Subject: Re: [theme-reviewers] Feedback on use of query_posts 
    please - Bad idea?<br><br></div>
    <div>
    <div>
    <div dir="ltr">Why do you need template-blog.php when there is home.php for 
    exactly that purpose?</div>
    <div><br><br>
    <div>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;PADDING-LEFT:1ex">
      <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" target="_blank">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><br>_______________________________________________ 
    theme-reviewers mailing list <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a></div>

</div></div></div></div></div><br>_______________________________________________<br>theme-reviewers 
    mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></div></div>
  <hr>

  <div>_______________________________________________<br>theme-reviewers 
  mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>

</div></div></div></div></div><br>_______________________________________________<br>theme-reviewers 
  mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>

<br><hr>
_______________________________________________<br>theme-reviewers mailing 
list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></div></div></div></div></div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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><br></div>
<br>_______________________________________________
theme-reviewers mailing list
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a></div></div></div></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><br></div>