[theme-reviewers] Front Page Implementation

Emil Uzelac emil at uzelac.me
Thu Jun 12 19:46:58 UTC 2014


At this time and unless WordPress core makes the changes, no not really.

front-page.php should take the precedence over all other Templates and it
does not :)

I personally find this Template confusing.



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

> Thanks for the link. I read and have the following conclusion.
>
> - The theme has to display blog index if setting is "posts"
> - The static page can only be displayed if setting is 'page' (static page).
>
> In other words, implementing front-page.php has not much meaning.
>
>
>
>
> On Thu, Jun 12, 2014 at 3:08 PM, Emil Uzelac <emil at uzelac.me> wrote:
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> 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/084db05f/attachment.html>


More information about the theme-reviewers mailing list