[wp-trac] [WordPress Trac] #21995: (get/the)_archive_title and (get/the)_archive_description functions

WordPress Trac noreply at wordpress.org
Tue Nov 4 22:33:04 UTC 2014


#21995: (get/the)_archive_title and (get/the)_archive_description functions
---------------------------------------------+--------------------------
 Reporter:  thomask                          |       Owner:  johnbillion
     Type:  feature request                  |      Status:  closed
 Priority:  normal                           |   Milestone:  4.1
Component:  Themes                           |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch twenty-fifteen commit  |     Focuses:  template
---------------------------------------------+--------------------------

Comment (by afercia):

 Replying to [comment:42 McGuive7]:
 > Anyone else think this is worth doing?
 I agree. This is basically hardcoding something that before was very easy
 to change in a theme.
 All these titles will be mostly used as the main heading in a page, the
 most important piece of information for:
 - assistive technologies
 - SEO
 - machine readability
 Moreover, please don't think just in English. Other languages may need to
 change the titles and provide more context; trying to handle this with the
 translation sometimes is not enough.
 Some examples:
 - Year: 2014
 - Audio
 - Asides
 read out of context, they don't give enough information about the page. Is
 this a single post title? Is this a generic list? Is a chronological
 archive? Please don't think just visually.
 For example, imagine you're a screen reader user:
 - you follow a link from some external site
 - you land on one of these archive pages
 - first thing you do: you try to get the `h1` of the page and what you get
 is...
 "Audio".

 As I see it, as soon as theme authors will start using these new template
 tags, they will try to find a way to change that hardcoded stuff.
 Please, please, consider to reopen :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21995#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list