Hello, neliti.
Thanks for using GoodReviews. The plugin does not have this feature. Off the top of my head, I don’t know of any plugins that specifically replace the post title with a title from Goodreads. However, there are numerous plugins in the WordPress Plugin Repository that allow you to customize post titles in various ways.
Let me know if I can be of further assistance.
James
Thread Starter
neliti
(@neliti)
Hi James,
Thanks for the reply. Can you think of any ways of doing this off the top of your head?
– Anton
I don’t know of a way without writing custom code. GoodReviews uses the following method from the Goodreads API to retrieve the book information, including the title:
https://www.goodreads.com/api/index#book.show_by_isbn
Once you’ve retrieved the title, you might use the methods discussed in the following thread to accomplish the custom post title:
https://ww.wp.xz.cn/support/topic/generating-and-setting-a-custom-post-title?replies=6
Thanks again for using GoodReviews.
James
Thread Starter
neliti
(@neliti)
I have previously been able to fetch the title from custom fields and post meta.
What piece of information is associated with the goodreads book title?
Is it <div class=”good reviews-label”>
Hi, neliti.
The element on the page that contains the book title is:
<label for="goodreviews-bookinfo" class="goodreviews-label"></label>
Thanks again for using GoodReviews and let me know if I can be of further assistance.
James
Thread Starter
neliti
(@neliti)
Hi James,
Still can’t seem to retrieve the title only. I’ll give up for now, but can I make a feature request for the title shortcode in a future update?
Thanks if you can make this possible 🙂
Hi, neliti.
I’ll investigate adding this for a future revision.
Thanks!