David,
Thank you for a lovely, useful plug-in! I found one small issue that I thought I’d share here…
Using the plug-in, I’ve found that books with apostrophes in their titles don’t show up. For instance, this one:
https://www.goodreads.com/book/show/31409135
It looks like somehow the apostrophe is causing the link tag attributes to break. I fixed it in my copy by adding:
str_replace('\'', '’', $reading->book->title)
… in the appropriate places. Here’s the full replacement code section:
// CURRENTLY READING
foreach ($reading->reviews->review as $reading) {
$title = str_replace('\'', '’', $reading->book->title);
if (!$img = $this->goodrds_image_exceptions($reading->book->id))
$img = $reading->book->image_url;
$return .= "<a target='_Blank' href='https://www.goodreads.com/book/show/{$reading->book->id}' title='{$title} - #{$reading->book->id}' class='book reading' style='background-image:url({$img});'></a>";
$showbooks--;
}
// RECENTLY READ
#->id
#->book->id
#->book->title
#->book->average_rating
#->book->authors->author->name
foreach ($read->reviews->review as $read) {
if ($showbooks > 0) {
$title = str_replace('\'', '’', $read->book->title);
if (!$img = $this->goodrds_image_exceptions($read->book->id))
$img = $read->book->image_url;
$return .= "<a target='_Blank' href='https://www.goodreads.com/book/show/{$read->book->id}' title='{$title} - #{$read->book->id}' class='book read' style='background-image:url({$img});'></a>";
$showbooks--;
}
}
Please consider adding something like this fix in a future version.
Thanks again!
]]>Hello David,
is there an easy and quick way to display more than 10 books on a page? like 50 books or more (5 per line)? why did you choose max 10? Weird for big readers like me ?? Do you think you will be able to post an update soon in order to provide this option?
A big thanks for your time.
Kind regards
Looking to see if you have an update
]]>Image exceptions don’t seem to work at all. What mistake may I make?
W?adys?aw
Is it possible to add some optional desriptions, at least title and author to the page? Most of my books are Polish and covers are nor shown.
W?adys?aw
]]>hello,
Could you please help?
Couple of ‘currently reading’ books images are not showing up. And shows ‘g’.
The plugin looks great, but its not pulling my most recently read books, it just seems to be a random selection of ‘read’ books. The whole reason I want to use it is to show what I’ve just finished reading! Is there a setting I need to change? I don’t see anything. Thanks for your help!
]]>Is there any way to show a vertical list of books without images? Many of the books I have in both reading and read shelves don’t show images in this plug in. I’d like just to show titles (and possibly authors?).
]]>I’ve installed the plug-in, updated the settings, and have tried to use the shortcode in a specific shortcode widget and in the general text and htlm widgets.
My shelf is not showing up though.
Any suggestions? What widget should I be using to make this work?
Thanks!
]]>Hi, first of all I really want to like this plugin. The concept is excellent and I think it would be useful to a lot of people.
However, I’m only getting the “G” images for every book that’s showing.
The book covers show on the Goodimages website so I don’t think this is an unavailable image issue as described in the FAQ. Also it’s ALL my book images not just one or two. Lastly, I try to define an exception by the book ID and image URL (from the Goodreads site), and still doesn’t work.
I’m on the current version of WP (4.8.1), running php 7.0.21 and CURL is active.
I’m attempting to review your plugin for my monthly plugin roundup on iThemes Training. The URL on my demo site is https://wpnathan.com/goodreads/.
Thanks!
]]>