WordPress.org

Ready to get started?Download WordPress

Ideas

Proper use of rel="alternate" for feeds

  1. phyzome
    Member

    12345

    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:

    1. First, the appropriate feed link, using rel="alternate", and
    2. second, the global feed link, using rel="alternate index"

    This would perfectly implement the autodiscovery and W3C standards and intents for alternate content.

    Posted: 6 years ago #
  2. Mark Jaquith
    WordPress Lead Dev

    12345

    I like this. This would really show off all the different feeds WordPress can produce.

    Posted: 6 years ago #
  3. phyzome
    Member

    12345

    Yeah, I was pleasantly surprised to discover the search feed, etc.

    Posted: 6 years ago #
  4. thadguy
    Member

    12345

    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.

    Any suggestions?

    Posted: 6 years ago #
  5. qmpeople
    Member

    Can I use rel=alternate for an external resource? ( for example a translated content site ).
    Thank you

    Posted: 6 years ago #
  6. phyzome
    Member

    12345

    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.

    Posted: 5 years ago #
  7. ninjaWR
    Member

    Added to the trac ticket for the new default theme

    Posted: 4 years ago #
  8. Gtechsweeper
    Member

    It seem like alternate with picture ?

    Posted: 4 years ago #
  9. Techie
    Member

    12345

    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?

    Posted: 3 years ago #
  10. I actually think its a veeery interesting idea..

    +1
    Great Idea!

    Posted: 3 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    18 Votes
  • Status

    This is theme territory