Proper use of rel="alternate" for feeds
The feed autodiscovery links are incorrect in the default theme. A single post page should have a comments feed, a search page should have a search results feed, etc. (The functionality is already there!) Instead, every page has the same feed: The one for the entire site. (<link rel="alternate"> is intended for pointing out an alternate version of the page's content, or an alternate version of the dynamic content of the page.)
Unfortunately, people have come to expect this improper behavior. My suggestion is to provide two feed links by default:
- First, the appropriate feed link, using rel="alternate", and
- second, the global feed link, using rel="alternate index"
This would perfectly implement the autodiscovery and W3C standards and intents for alternate content.
I like this. This would really show off all the different feeds WordPress can produce.
Yeah, I was pleasantly surprised to discover the search feed, etc.
I would like to program this into my theme. However, I'm not really sure how to do it.
The only way I know how to get the feed location is with bloginfo(). That always seems to return the global feed though.
Can I use rel=alternate for an external resource? ( for example a translated content site ).
1 year, and no attention. I'll bump the thread.
Has anyone figured out a workaround? There doesn't even seem to be an API call to get a feed for the current loop.
Added to the trac ticket for the new default theme
It seem like alternate with picture ?
This was implemented with the theme 2010 but it should still be in the WordPress core. I use the neoclassical theme and this isn't a feature there; can we fix the "alternate" on all feeds by adding this as a WordPress core feature?
I actually think its a veeery interesting idea..
RSS feed for this topic
You must log in to post.