<div dir="ltr">Thanks for the link. I read and have the following conclusion.<div><br></div><div>- The theme has to display blog index if setting is "posts"</div><div>- The static page can only be displayed if setting is 'page' (static page).</div>
<div><br></div><div>In other words, implementing front-page.php has not much meaning.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 12, 2014 at 3:08 PM, Emil Uzelac <span dir="ltr"><<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">You'll find all of the answers right <a href="http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/" target="_blank">here</a>.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jun 12, 2014 at 2:00 PM, Stephen Cui <span dir="ltr"><<a href="mailto:scui2005@gmail.com" target="_blank">scui2005@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi, <div><br></div><div>I know we had many discussion regarding the front-page.php vs. home.php. But I am still confused about </div>
<div><br></div><div><b>Option 1 (front-page.php):</b></div><div><br></div>
<div>if ( 'posts' == get_option( 'show_on_front' ) ) {<br></div><div> // Load home.php</div><div>} elseif ( 'page' == get_option( 'show_on_front' ) ) {</div><div> // Load page's template part</div>
<div>}</div><div>else {</div><div> // Front Page Implementation</div><div>}</div><div><br></div><div><b>Option 2 (</b><b>front-page.php)</b><b>:</b></div><div><br></div><div><div>if ( 'page' == get_option( 'show_on_front' ) ) {<br>
</div><div> // Load page's template part</div><div>}</div><div>else {</div><div> // Front Page Implementation</div><div>}</div></div><div><br></div><div><div><b>Option 3 (</b><b>home-page.php)</b><b>:</b></div><div>
<br></div><div><div>if ( 'page' == get_option( 'show_on_front' ) ) {<br></div><div> // index loop</div><div>}</div><div>else {</div><div> // Home (or. Front ) Page Implementation</div><div>}</div></div>
</div><div><br></div><div>My questions are:</div><div><br></div><div>- If option 2 and 3 are acceptable.</div><div>- If only option 1 is acceptable, the only time front page implementation will be displayed is when user choose Static without choosing any page as Front page.</div>
<div><br></div><div>Regards</div><span><font color="#888888"><div><br></div><div>Stephen Cui</div><div><br></div><div><br></div></font></span></div>
<br></div></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>
<br></blockquote></div><br></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>