[wp-trac] [WordPress Trac] #17033: Archive of pages uses home.php template

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 3 13:15:32 UTC 2011


#17033: Archive of pages uses home.php template
--------------------------+-----------------------------
 Reporter:  ptahdunbar    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Post Types    |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 via michael at mfields.org on wphackers

 Running the following query from the location bar will produce a list of
 all pages on a site: ?post_type=page. In the event that the theme has a
 home.php template, this template will be used to display the archive. I
 believe that home.php is intended to be used only when the "Blog" is being
 queried (posts with a post_type of "post" with no modifiers). All custom
 post types fall back to index.php if there is no dedicated template
 however, pages are somehow triggering home.php.

 The bug is due to the page post type not having a has_archive defined.
 patch provided.

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


More information about the wp-trac mailing list