{"id":302,"date":"2004-06-24T10:49:00","date_gmt":"2004-06-24T17:49:00","guid":{"rendered":"http:\/\/antone.geckotribe.com\/alpha-gecko\/2004\/06\/24\/using-newsfeeds-to-display-your-own-data-on-your-website\/"},"modified":"2006-03-25T10:25:44","modified_gmt":"2006-03-25T17:25:44","slug":"using-newsfeeds-to-display-your-own-data-on-your-website","status":"publish","type":"post","link":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/using-newsfeeds-to-display-your-own-data-on-your-website\/","title":{"rendered":"Using newsfeeds to display your own data on your website"},"content":{"rendered":"<p>Ever since I built <a href=\"http:\/\/www.geckotribe.com\/rss\/carp\/\">CaRP<\/a> to import news onto one of my websites (I wanted a way to keep it fresh without having to do any work myself), I've been using RSS feeds more and more to shuttle data around my sites. I added code to output RSS feeds from my discussion forums. I set up a press release newsfeed. I setup a newsfeed to which visitors to one of my sites could submit related news. And CaRP displays it all. There are some places on my sites where a particular page pulls the data out of the database and displays it itself, but why write the code to make that happen when a newsfeed will do just as well?<\/p>\n<p>When I add a feature like news, a forum, etc., to one of my sites the database for that feature is structured in a way that makes sense for that feature. For news, there's a headline, a link, and a summary. For a forum, there's a title, a message and an author. (There are other fields, of course, but these are the core). Since the names and types of the fields are different, I can't easily write generic code to access each of the databases and display their content. But If each feature includes code to generate an RSS version of its data, then all I need is an RSS parser to display any of them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever since I built CaRP to import news onto one of my websites (I wanted a way to keep it fresh without having to do any work myself), I've been using RSS feeds more and more to shuttle data around my sites. I added code to output RSS feeds from my discussion forums. I set...<br \/>[<a class=\"moretag\" href=\"https:\/\/zeta.geckotribe.com\/alpha-gecko\/using-newsfeeds-to-display-your-own-data-on-your-website\/\">read more<\/a>]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,12,23],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-atomrss","category-carp","category-web-design"],"_links":{"self":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":0,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}