{"id":34,"date":"2005-04-20T08:57:49","date_gmt":"2005-04-20T12:57:49","guid":{"rendered":"\/?p=34"},"modified":"2005-04-20T08:57:49","modified_gmt":"2005-04-20T12:57:49","slug":"blog-on-homepage","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2005\/04\/20\/blog-on-homepage\/","title":{"rendered":"Blog on homepage&#8230;"},"content":{"rendered":"<p>On Apr 20, 2005, at 8:37 AM, Francis Swasey wrote:    <\/p>\n<div style=\"margin-left: 40px\">I want to have my homepage (www.uvm.edu\/~fcs) show the two most&nbsp; recent posts to my blog&#8230;. Steve says I want you to figure out how to&nbsp; make RSS work with the magicscript&#8230;.  Steve says this is a good&nbsp; project for you.  \n<\/div>\n<p>\nhmmm&#8230;interesting.    If you were using wordpress, we wouldn&#8217;t need to worry about RSS    \thttp:\/\/www.uvm.edu\/~waw\/wordpress\/    <\/p>\n<p>I looked into it. Found Magpie (magpierss-0.71.1). Wrote simple script<\/p>\n<pre>&lt;?<br \/>\n<br \/>\nrequire_once('magpie\/rss_fetch.inc');<br \/>\n<br \/>\n#$url=&quot;http:\/\/fcs.blog.uvm.edu\/index.rdf&quot;;<br \/>\n<br \/>\n#$url=&quot;http:\/\/www.uvm.edu\/~waw\/wordpress\/wp-rss2.php&quot;;<br \/>\n<br \/>\n$rss = fetch_rss($url);<br \/>\n<br \/>\necho &quot;<h1>Channel Title: &quot; . $rss-&gt;channel['title'] . &quot;<\/h1>&quot;;<br \/>\n<br \/>\nforeach ($rss-&gt;items as $item) {<br \/>\n<br \/>\n$href = $item['link'];<br \/>\n<br \/>\n$title = $item['title'];<br \/>\n<br \/>\n$what = $item['description'];<br \/>\n<br \/>\n$when = $item['date'];<br \/>\n<br \/>\nprint &quot;<h2><a href=\"$href\">$title<\/a><\/h2>&quot;;<br \/>\n<br \/>\nprint &quot;<dt>$when<\/dt>n<dd>$what<\/dd>n&quot;;<br \/>\n<br \/>\n}<br \/>\n<br \/>\nexit;<br \/>\n<br \/>\n?&gt;<br \/>\n<br \/>\n<\/pre>\n<p>On Apr 20, 2005, at 8:52 AM, Francis Swasey wrote:    <\/p>\n<div style=\"margin-left: 40px\">I went to your wordpress page and clicked on the RSS 2.0 link and&nbsp; got the following:&nbsp; <span style=\"font-weight: bold\">XML Parsing Error: not well-formed  &gt; Location: http:\/\/www.uvm.edu\/~waw\/wordpress\/wp-rss2.php  &gt; Line Number 18, Column 64<\/span>:<br \/>\nhttp:\/\/www.uvm.edu\/~waw\/wordpress\/?Page=.\/default.php&amp;p=32 link What&#8217;s that all about?\n<\/div>\n<p>\nBad wordpress code and complicated magicscript URLs. Hacked and fixed.    But that wasn&#8217;t what I was talking about &#8212; what I was talking about    was the incorporation of wordpress into the template    But what you and Steve are talking about is this    \thttp:\/\/www.uvm.edu\/~waw\/rss.php?url=http:\/\/fcs.blog.uvm.edu\/index.rdf    or this    \thttp:\/\/www.uvm.edu\/~waw\/rss.php?url=http:\/\/www.uvm.edu\/~waw\/wordpress\/   wp-rss2.php    <\/p>\n<p>So, look at the code of http:\/\/www.uvm.edu\/~waw\/rss.php      modify to suit    insert in your default.php file <\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Apr 20, 2005, at 8:37 AM, Francis Swasey wrote: I want to have my homepage (www.uvm.edu\/~fcs) show the two most&nbsp; recent posts to my blog&#8230;. Steve says I want you to figure out how to&nbsp; make RSS work with &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2005\/04\/20\/blog-on-homepage\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[175,6517],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-blogs","category-projects"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}