<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><div><br></div><div>Stephen Cui</div><div><br></div><div><br></div></div>