Forums

How to change the "link" element in the RSS feed? (1 post)

  1. ozonshak
    Member
    Posted 4 months ago #

    Hello. I have a situation where I would like to change the "link" element in the automatic RSS feed created by Wordpress for one particular category on my blog. For example, let's say I have a category on the site with a URL of "http://www.myblog.com/blog/category/". The feed would, of course, be "http://www.myblog.com/blog/category/feed/". When I view the source of the feed, it looks like this:

    <channel>
    <title>category title</title>
    <atom:link href="http://www.myblog.com/blog/category/feed" rel="self" type="application/rss+xml" />
    <link>http://www.myblog.com/blog</link>
    <description>testing</description>
    ...

    Is there any way to change the <link> element above so that it points to this particular category page (http://www.myblog.com/blog/category)? Currently, this element is the same no matter which page I'm on. I'm attempting to put a third party widget on this category page and they need to validate the widget. They are using the "link" element to validate that I've placed the widget there. I would prefer to not have to install this widget on my home page. Thanks!

Reply

You must log in to post.

About this Topic