RSS feed URL from Blog URL (5 posts)

  1. Workshopshed
    Posted 4 years ago #

    In the header of a blog page there is a link to the RSS feeds for that page

    e.g. http://www.workshopshed.com

    <link rel="alternate" type="application/atom+xml" title="Workshop Shed - Atom" href="http://www.workshopshed.com/feeds/posts/default" />
    <link rel="alternate" type="application/rss+xml" title="Workshop Shed - RSS" href="http://www.workshopshed.com/feeds/posts/default?alt=rss" />

    Does anyone have some php code that can take the site url and produce a list of the feed urls? Alternatively do you know of any plugins that have this feature?

  2. Towards what end? Do you just want a list of feeds on the front end so people can click and be happy?

  3. Workshopshed
    Posted 4 years ago #

    It's for the backend. The idea is to make it easier to get the RSS feed for blogroll items in the admin dashboard for link management.

  4. For one, you can add RSS feeds to your dashboard like this: http://adamscottcreative.com/add-your-own-news-feed-to-wordpress-dashboard/

    Now that that's out of the way... You'd probably want to do the parsing in some PHP code, as it's not really WP specific. I know Google Reader can grab feed URLS from parents (i.e. if I go to domain.com, it knows domain.com/feed is there BECAUSE of the header info).

  5. Workshopshed
    Posted 4 years ago #

    Thanks, interesting link but not quite was I was looking for. The magic words were "rss autodiscovery". I've found something that appears to handle what I'm thinking of.


    Am I correct in thinking that the current way to read a remote page is via wp remote get

    The workflow would be in the admin dashboard

    1) Add a new link
    2) In new metabox press a button to "auto discover" the feeds
    3) List of fields is shown, admin selects one
    4) This is saved to the rss_url

Topic Closed

This topic has been closed to new replies.

About this Topic