The strange little box in the sidebar is now fixed.
I’ve written my first WordPress plug-in.
As you can tell, it generates a date in Shire Reckoning. I’ve done this before, but as a BASIC program. Now I’ve rewritten the program in fairly simply .php code.
Interested parties may download the plug-in here.
How does one call the plug-in? I inserted the following code into my sidebar.php file:
<?php shire_reckoning(); ?>
It can take two arguments–’auto’ or ‘now. Now will give you the current date in Shire Reckoning. Auto can be used to replace the_date
function with shire_reckoning('auto')
in your WordPress loop if you want to have your blog’s dates given in Hobbit terms.
Here’s my main page on Shire Reckoning. 🙂
Published by Allyn
A writer, editor, journalist, sometimes coder, occasional historian, and all-around scholar, Allyn Gibson is the writer for Diamond Comic Distributors' monthly PREVIEWS catalog, used by comic book shops and throughout the comics industry, and the editor for its monthly order forms. In his over ten years in the industry, Allyn has interviewed comics creators and pop culture celebrities, covered conventions, analyzed industry revenue trends, and written copy for comics, toys, and other pop culture merchandise. Allyn is also known for his short fiction (including the Star Trek story "Make-Believe,"the Doctor Who short story "The Spindle of Necessity," and the ReDeus story "The Ginger Kid"). Allyn has been blogging regularly with WordPress since 2004.
View more posts
I got to work on my blog! this si a nice plugin specially for LOTR fanatics!
I as well have this working – the second version which adds “what happened on this day” to the SR date….
Thanks much, Allyn!
cool plugin!
is there a chance this will become a widget?