Creating attractive, usable and structurally clean web sites.

Wordpress Plugin: Current Book

Summary
A simple little plugin to help you manage the display of a book you are currently reading. Want to show your readers what book you’re reading? That’s just what this plugin does coincidentally.

Download and Install
Download the latest release »

  1. Upload the file bookdisplay.php to your /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Usage

  1. Open management page [Manage] – [Current Book].
  2. Edit “Book Title” field, “Book Link” and “Author” fields
  3. Click “Update options”
  4. Add <?php current_book(); ?> wherever you’d like the information to be displayed in your templates.
  5. That’s it. Simple.

Need help?
If you need help installing this plugin or customizing the display of the book title and author, please feel free to contact me

  • Hello,


    It's a very useful plug-in but here is the message I got

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected '}' in /homez.221/metrosap/www/wp-content/plugins/bookdisplay.php on line 53
  • What version of WordPress are you running, and have you made any changes to the bookdisplay.php file? I haven't test the script on WordPress 2.8, and I feel that may be part of the problem.
  • Cheryl
    I installed/activated the plugin, edited the book info, and added to the theme template. Nothing shows up. What could I be missing?
  • Hi,

    A bit of confusion - I've installed the plugin through the dashboard of my self-hosted WP account. When I add the [?php current_book(); ?] to my page, nothing comes up.

    I need to add the CustomBook template to my page? Can you tell me how to do that?

    Thanks!
  • @Rob: If you mean showing it on a single post page, you'd want to put the bit of code to show the current book in the single.php template file only. Or, if you want it to display on say... the About page only you'd need to install a plugin that can allow you to place code within pages in the editor of WP.

    You could also create a special template that includes the current book code for use within the 'Pages' of WP.
  • Rob
    How do I get the plugin to display on a single page only?
  • It might be nice if there was a section for specific referral program entries instead of just the link.

    I use Amazon, so that's my example: Like Amazon Associates has code to show it as either text or the graphic, etc. That way you could show the graphic or text at your preference with just normal clicking through Amazon and get paid the 1/400th of a cent or whatever. :-) Cut and paste from Amazon's widget & toolbar thing instead of manually entering the associate link.

    Still, love this as is and am using it for my new site!
  • @Christy: Excellent suggestion. I'll have to keep that in mind for the next version.
  • would love it if you could show thumbnail image of book.
  • Cheers, I enjoyed reading your blog, mate. I look forward to seeing your next entries.