[theme-reviewers] Front Page Implementation

Emil Uzelac emil at uzelac.me
Thu Jun 12 19:08:55 UTC 2014


You'll find all of the answers right here
<http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/>
.


On Thu, Jun 12, 2014 at 2:00 PM, Stephen Cui <scui2005 at gmail.com> wrote:

> Hi,
>
> I know we had many discussion regarding the front-page.php vs. home.php.
> But I am still confused about
>
> *Option 1 (front-page.php):*
>
> if ( 'posts' == get_option( 'show_on_front' )  ) {
>    // Load home.php
> } elseif ( 'page' == get_option( 'show_on_front' )  ) {
>   // Load page's template part
> }
> else {
>    // Front Page Implementation
> }
>
> *Option 2 (**front-page.php)**:*
>
> if ( 'page' == get_option( 'show_on_front' )  ) {
>   // Load page's template part
> }
> else {
>    // Front Page Implementation
> }
>
> *Option 3 (**home-page.php)**:*
>
> if ( 'page' == get_option( 'show_on_front' )  ) {
>   // index loop
> }
> else {
>    // Home (or. Front ) Page Implementation
> }
>
> My questions are:
>
> - If option 2 and 3 are acceptable.
> - 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.
>
> Regards
>
> Stephen Cui
>
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140612/b5cd33e1/attachment-0001.html>


More information about the theme-reviewers mailing list