Learn to add dynamic book ratings and reviews to your WordPress template. Use custom fields for stars, averages, and totals to boost reader engagement and conversions.
I feel like this needs a bit of drumroll. This is the first instance of using data from the custom fields we set up in the previous module! Ok, maybe that’s just me but this is a big deal.
Adding a recognisable, highly visual and easy to update ratings system to the Single Book Template is one of the many CONVERSION RATE enhancements that will move visitors into subscribers, readers and fans.
Seeing how your book is rated and how many reviews it has is yet another mental microtransaction to propel them forward to taking the next steps, especially for genre fans.
It’s why AMAZON uses this approach and why I’ve copied their layout for this div as much as possible.
A DIV, short for document division, is a container for other elements.
In HTML, both div and section are HTML elements that are used for grouping and organising content on a web page. However, there is a subtle difference between the two.
A div is a generic container element that does not carry any semantic meaning. It is mostly used for grouping related elements together and applying styling to them via CSS.
A section, on the other hand, is a semantic element that represents a specific section of a web page with a distinct topic or purpose. For example, in the SINGLE BOOK Template I’ll use a section for the HERO (above the fold) area, a different section for the BOOK DESCRIPTION, another section for the reviews and so on.
We are going to use this Div as a container to display the 3 Ratings elements in our Single Book Template
We will finish setting up the Div before adding the elements.
We will see the rating pulled from the post we set up in the previous module. If we change which book we are previewing you’ll see the data changes to match what was added to the post.
The final element in the Rating section Div is the Total Ratings Text. As well as pulling the data from the custom field we are going to append some text to the custom field as well.
We want to help the reader understand these numbers at first glance so I’m to append a single word to the Total Ratings number to explain it.
Amazon uses ‘ratings’ but I feel reviews is a better fit for book but you can choose any term you like.
This lesson showed you how to create a dynamic ratings section for your Single Book Template using custom fields. By adding a container for average ratings, star ratings, and total reviews, you provide visitors with clear, engaging feedback about your books. These elements, styled for visual clarity and reader understanding, enhance trust and encourage conversions, helping to turn visitors into loyal readers and fans.