[wp-trac] [WordPress Trac] #21951: Twenty Twelve: add post_type_archive_title to archive.php
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 25 21:30:25 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 |
---------------------------+-----------------------
Comment (by thomask):
My thoughts were above. Please could you write here, why (if) you disagree
with my idea of creating two new functions and showing archive like:
{{{
<header class="archive-header">
<h1 class="archive-title"><?php the_archive_title() ?></h1>
<div class="archive-meta"><?php the_archive_description ?></div>
</header><!-- .archive-header -->
}}}
Imo it is quite stupid to push developers to remember and use (and create
conditionals for) all those just slightly different functions like
single_cat_title, single_tag_title, post_type_archive_title and so on when
i 99 % they use them just for outputing the title in the appropriate
archive template.
IMO it is like having different name for post_name when on different
taxonomies. My sollution would solve problems of all of you - we will get
only one file, but it will be as simple as if we would use file for every
archive type and will keep its complexity if needed via params,
translations or replacing by those existing functions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21951#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list