How to Get a Custom Field (URL) into an RSS Feed
-
I’ve got a custom field called ArticleLink for each post where I put in the original URL of an article that I’m blogging about. I’ve enabled it to show up in my posts on my blog, but I also want it to show up in my RSS feed.
I’m a XML newbie, but I read somewhere that any RSS element has to comply with RSS 2.0 specifications. This would be a <item> element. So, I don’t know if I can do “ArticleLink” as the custom field name unless it’s referenced in a NameSpace somewhere. (I have no idea how to do this, much less get it up set up in WordPress).
I would consider any kind of work around. Would using Enclosure, Source, or Excerpt or something else work? (although I wouldn’t want to mess with those if I didn’t have to) Does Enclosure HAVE to point to a media file and/or does Source HAVE to point to an XML file? I can change the custom field name to something else if it helps. So, I guess my real goal here is to get a URL into an RSS feed.
(I would have thought other people would want to do the same thing, but I haven’t seen it in any of the forum posts.)
BTW, I’m using WP 1.5.1.2
- The topic ‘How to Get a Custom Field (URL) into an RSS Feed’ is closed to new replies.