[wp-trac] [WordPress Trac] #21951: Twenty Twelve: Missing post_type_archive_title from archive.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 21 19:25:05 UTC 2012
#21951: Twenty Twelve: Missing post_type_archive_title from archive.php
---------------------------+------------------
Reporter: thomask | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+------------------
Comment (by nacin):
So, archive.php can be used in a number of situations: authors, dates,
categories, tags, other taxonomies, and post type archives.
There's already an author.php. There is also a lot of conditional code in
archive.php for dates, categories, and tags. Thus, "Blog Archives" would
only apply for custom taxonomies and post type archives. In that case, a
generic "Archives" (rather than "Blog Archives") seems sufficient.
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. Then archive.php is just a weak container for
custom taxonomies and post type archives.
I'm just playing around here, but [attachment:21951.diff].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21951#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list