About this plugin
DeadTrees is a WordPress plugin that allows you to share the books you’ve been reading with your readers.
It’s slightly influenced by other “My Library” type of plugins, such as the whole Now Reading/Reloaded/Redux group of plugins, but is a complete re-write using WordPress’s Custom Post Type features.
I wrote Dead Trees because I want to post on my blog when I read a book, but only sometimes want to write about the book. ), do that.
New in Version 1.1: Multiple Book Cover Sources
org, LibraryThing, or Amazon, depending on the settings, and what’s available where.
If you have set your Amazon API credentials, you can choose to look for a cover at Amazon either first or last: first for people who are working on building affiliate income from Amazon, and have plenty of API quota, or last for people who prefer to promote independent book sources or can’t or don’t want to use Amazon’s services.
org is checked first as it provides larger images than other options. org doesn’t have a cover for a book and you have set a LibraryThing API key we will fall back to looking for a cover at LibraryThing.
org does not require any API credentials or any special configuration.
How it works
To post a book that you read, you’ll go to the admin of your site and choose “Books” from the main menu. You can then enter the title of the book, the author’s name(s), ISBN, Amazon’s ASIN, (likely the ISBN), and, if you wish, you may write about the book, but you don’t have to if you don’t want to.
Hit publish and the DeadTrees will grab the cover art from Open Library or Amazon and publish your book.
You can also tag the book, just like a post. The pool of tags is shared between posts & books.
com/jbeales/DeadTrees
com/jbeales/DeadTrees/issues
com/books/
Thanks
org and LibraryThing for providing open book cover data. APIs like these that share information make the independent web possible and fun.
Troubleshooting
org to let me know that the problem isn’t fixed yet.
Templating
Template Tags
Dead Trees creates some template tags for you. Here are the important ones. php, they’re all there:
dt_bookbox()
uk.
Call dt_bookbox() inside the loop or pass it the post ID of a book.
php in your theme. php as a starting point.
dt_get_amazon_url($domain=’amazon.com’, $post_id=0)
Gets the Amazon affiliate URL for a book.
com’). If called in the loop the second argument is not required, but if you want to call this outside of the loop provide the post ID of a book as the second argument.
dt_get_bookbox_image($post_id=0)
Gets the cover art for a book. If called in the loop this function can, (and should), be called with no arguments. Uses wp_get_attachment_image() to get the image.
dt_get_bookbox_comment($post_id=0)
Gets an extra comment to display in the bookbox. You enter this in the admin in the box that you put the ASIN into. This should be called with no arguments in the loop, or passed the post ID of a book outside of the loop.
Template Files
Dead Trees introduces a new post type: dt_book, and a new taxonomy: dt_writer. php. This way you can make your reading list look like a real library!
On Caching Plugins
php), and when updating your Amazon Affiliate IDs. Once your changes are made just make sure the cache is clear and turn caching back on.
I’m not sure about other caching plugins, but I suspect they’ll behave in a similar manner.