[wp-trac] [WordPress Trac] #21951: missing post_type_archive_title from archive.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 20 23:19:39 UTC 2012
#21951: missing post_type_archive_title from archive.php
-----------------------------+---------------------------
Reporter: thomask | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Bundled Theme
Version: | Severity: trivial
Keywords: |
-----------------------------+---------------------------
Archive.php template (twenty twelve, but if i remember it right, it is in
twenty eleven as well) shows also (custom) post type archives, but their
definition is missing so there is no title for it.
Solution - add
{{{
elseif ( is_post_type_archive() ) {
printf( __( 'Archives:
%s', 'twentytwelve' ), '<span>' . post_type_archive_title( '', false ) .
'</span>' );
}
}}}
at around row 33 (i do not know how to create diffs, sorry)
P.S.: i am not english, so maybe you will found someting better then just
Archives: %s
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21951>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list