[wp-trac] [WordPress Trac] #21951: Twenty Twelve: add post_type_archive_title to archive.php

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 24 18:51:33 UTC 2012


#21951: Twenty Twelve: add post_type_archive_title to archive.php
-----------------------------------+-----------------------
 Reporter:  thomask                |       Owner:
     Type:  enhancement            |      Status:  reopened
 Priority:  normal                 |   Milestone:  3.5
Component:  Bundled Theme          |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+-----------------------
Changes (by iandstewart):

 * cc: ian@… (added)


Comment:

 Replying to [comment:6 nacin]:
 > But when you look at it, wouldn't it be cleaner if Twenty Twelve had a
 date.php, category.php, and tag.php? I'm thinking about the approach a
 user would take, trying to customize their theme, probably from the theme
 editor, without knowing a thing about WordPress. (Been there, many years
 ago.) I'd rather leverage the existing hierarchy than fill up a catchall
 template with conditionals.

 I used to feel the same way, and somewhat strongly, until I realized that
 in practice this seems to rarely happen with themes and that what you have
 is a bunch of templates hanging around that are modular for no particular
 reason. I think, in the end, it's actually easier to grok archive
 templates with those conditionals for the title-ey bits. Anyone needing to
 change anything more, developer-ey people, will know they can take
 advantage of the template hierarchy in a fork or a child theme. It's more
 code in the one template but more templates feels way lighter. Anecdotally
 I've seen lots of themers saying the same thing in forums.

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


More information about the wp-trac mailing list