Enable feed autodiscovery for custom post type archives
|Reported by:||mdgl||Owned by:||nacin|
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().
Change History (16)
- Component changed from Feeds to Post Types
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to 3.5
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
- Resolution fixed deleted
- Status changed from closed to reopened