[wp-trac] [WordPress Trac] #21648: Enable feed autodiscovery for custom post type archives

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 21 08:46:55 UTC 2012


#21648: Enable feed autodiscovery for custom post type archives
-------------------------+-----------------------------
 Reporter:  mdgl         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Feeds        |    Version:  3.4.1
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 When creating a new custom post type with register_post_type() it is
 possible to enable the automatic creation of archives and the
 corresponding feeds.

 Unfortunately, such feeds (if enabled) are not advertised through the
 "feed autodiscovery" mechanism. That is, if you view a custom post type
 archive page, there is no <link> added to point to the corresponding feed.
 This does happen, for example with other archive pages such as those for
 search, author, date, category and tag.

 To me, it looks like there is some missing code in feed_links_extra()
 [file: general_template.php] that would check is_post_type_archive() and
 output the appropriate link using get_post_type_archive_feed_link() and
 post_type_archive_title().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21648>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list