[wp-trac] [WordPress Trac] #12593: Wrong template is loaded when using static home page

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 12 19:34:25 UTC 2010


#12593: Wrong template is loaded when using static home page
---------------------------+------------------------------------------------
 Reporter:  alekseykorzun  |       Owner:            
     Type:  defect (bug)   |      Status:  new       
 Priority:  normal         |   Milestone:  Unassigned
Component:  Template       |     Version:            
 Severity:  normal         |    Keywords:            
---------------------------+------------------------------------------------
 Observed following bug when using static page as a home page (configured
 in 'reading' part of settings).

 1. Create a new page named 'Home', with template 'Home' (home.php).
 2. Create a new page named 'Blog', with template 'Blog' (blog.php).
 3. Set 'Home' as your static home page and set 'Blog' as your posts page.

 When accessing Blog, instead of blog.php you are presented with a home.php
 template; because templating system overrides it when home.php is present
 in a theme directory.

 It should not override it and display properly configured template
 instead.

 This could be manually resolved by renaming 'Home' page and template to
 'Main',etc.

 Thank you.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12593>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list