[wp-trac] Re: [WordPress Trac] #6801: Should have a template file for front page

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 13 17:03:31 GMT 2009


#6801: Should have a template file for front page
---------------------------+------------------------------------------------
 Reporter:  AaronCampbell  |        Owner:  anonymous
     Type:  enhancement    |       Status:  reopened 
 Priority:  normal         |    Milestone:  2.9      
Component:  Template       |      Version:           
 Severity:  normal         |   Resolution:           
 Keywords:  needs-patch    |  
---------------------------+------------------------------------------------

Comment(by filosofo):

 Replying to [comment:21 Denis-de-Bernardy]:
 > Personally, I'd suggest page template (if any) then try front-page.php,
 then home.php, then try page.php for best compat.

 That should be refined, I think:

 If static front page set:
 custom template > front-page.php > page.php > index.php

 If not a static front page:
 front-page.php > home.php > index.php

 home.php should not be considered for the front page, when a static front
 page is set, because is_home() will be false for the front page.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6801#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list