开发者 | jazzs3quence |
---|---|
更新时间 | 2022年7月20日 01:26 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 6.1 |
版权: | GPLv3 |
版权网址: | 版权信息 |
[book-reviews]
will display all books, while [book-reviews count=3]
will only display 3 books and [book-reviews count=3 covers=true]
will display those reviews with their covers, if they exist.
Two sidebar widgets have also been included. A Recent Reviews widget will display the most recent book reviews that have been added, and a Related Books widget will display a list of similar books when you are looking at a single book or book list by common genre tags.
Theme developers haven't been forgotten either. If you want to customize the way the reviews display, create and edit these template files:
taxonomy.php
archive-book-review.php
single-book-review.php
inc/func.php
.
This plugin uses the Genericons icon font in both the dashboard and the front end to display the book icons and star ratings.
Translators!
New translations site is up at https://chrisreynolds.io/glotpress/projects/book-review-library/
Please email me at hello at chrisreynolds dot io if you want to be added as a translator.
book-review-library.zip
to the /wp-content/plugins/
directory or use the built-in plugin installer on the WordPress Plugin Dashboard page.Ask some!
This is most likely because your theme is using the_title
in a link or somewhere else. This plugin adds a filter to the_title
to display the book's author. To prevent this behavior (and fix your problem), go to the Options page in the Book Reviews menu and disable "Display author with title". The author will no longer display with the book title and will, instead, be displayed with the genre information.
Go to Permalinks in the General Settings and just re-save your settings. This will update your .htaccess file and should resolve the problem.
Here are the known issues with sorting by author. Unfortunately, at this time, there isn't much that can be done about most of them because sorting by author is kind of a hack... Books with multiple authors display multiple times in the list. Reason: This is because we're doing a separate loop through all the books for each author. When it sees that book with multiple authors again, it will add that as a separate entry. Workaround: If you have one book that has multiple authors, the easiest solution is to add them as a single author, e.g. "Brad Williams Ozh Richard and Justin Tadlock" -- that way the book will only have a single "author" term associated with it. When I sort by author, it's sorting by their first name, not their last name. Reason: This is because each author is entered into the database as a "term", similar to a category. So, while I can make sure that "Orange" comes after "Apple" I can't do anything about "Orange Mackenzie" coming after "Apple Smith" programmatically, because if I tried to feed "Smith, Apple" back into the loop that's being done to pull up the list of books, "Smith, Apple" wouldn't match any entries and no results would be found. Workaround: If you must have books sorted by author last name, you can add the authors last name first, e.g. "Williams Brad".
genre
shortcode parameterauthor
shortcode parameterformat
. Accepted arguments are format=full
, format=excerpt
and format=none
(default). This allows the user to control whether the full review or an excerpt of the review will display when using the shortcode.order_by
-- accepted arguments are 'title', 'date_added' (default), and 'author'. See Frequently Asked Questions for more information about sorting by author.<a>
tags)float: left
on the book covers.