{"id":335,"date":"2005-03-03T11:11:44","date_gmt":"2005-03-03T16:11:44","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=335"},"modified":"2015-02-24T22:36:40","modified_gmt":"2015-02-24T22:36:40","slug":"335","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=335","title":{"rendered":"On Shire Reckoning&#8230; Again"},"content":{"rendered":"<p>The strange little box in the sidebar is now fixed.<\/p>\n<p>I&#8217;ve written my first WordPress plug-in.<\/p>\n<p>As you can tell, it generates a date in Shire Reckoning.  <a href=http:\/\/www.allyngibson.com\/?p=183\">I&#8217;ve done this before<\/a>, but as a BASIC program.  Now I&#8217;ve rewritten the program in fairly simply .php code.<\/p>\n<p>Interested parties may download the plug-in <a href=\"http:\/\/www.allyngibson.com\/shire.zip\">here<\/a>.<\/p>\n<p>How does one call the plug-in?  I inserted the following code into my sidebar.php file:<br \/>\n<code>&lt;?php shire_reckoning(); ?&gt;<\/code><\/p>\n<p>It can take two arguments\u2013&#8217;auto&#8217; or &#8216;now. Now will give you the current date in Shire Reckoning. Auto can be used to replace <code>the_date<\/code> function with <code>shire_reckoning('auto')<\/code> in your WordPress loop if you want to have your blog\u2019s dates given in Hobbit terms.<\/p>\n<p><a href=\"http:\/\/www.allyngibson.com\/?page_id=974\">Here&#8217;s my main page on Shire Reckoning<\/a>. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The strange little box in the sidebar is now fixed. I&#8217;ve written my first WordPress plug-in. As you can tell, it generates a date in Shire Reckoning.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135,4095],"tags":[368,348,4096],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-tolkien","category-wordpress","tag-lord-of-the-rings","tag-shire-reckoning","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}