开发者 | joshharbaugh |
---|---|
更新时间 | 2010年8月24日 00:38 |
捐献地址: | 去捐款 |
PHP版本: | 2.0.2 及以上 |
WordPress版本: | 3.0 |
bookdisplay.php
to the /wp-content/plugins/
directoryPlugins
menu in WordPress<?php current_book(); ?>
anywhere in your templates you'd like to display the title and author<div><p><a href=<link-to-book>>Book Title</a> <em>by Book Author</em></p></div>
The function current_book is defined within the bookdisplay.php file and can be manipulated there with a basic understanding of the PHP programming language.
Do to its simplicity the plugin should work for almost (if not) all versions of Wordpress. It has been thoroughly tested in the current Wordpress release (2.5). If you find a bug in any other versions of Wordpress, please let me know so that I may fix them.