The code in this download folder adds an extra setting to the Genesis Featured Posts widget to Show Star Rating for each post.
You can then add a rating from 1 – 5 for each post assigned to the reviews category.
Here’s what it looks like on the front end :
The rating is added using custom fields like this :
You can also add the rating and review system using ACF or gravity forms which enables front end users to submit a rating for review by a administrator.
Demo Video #
Shows a star rating system with Schema added to the Genesis Featured Posts widget enabling users to rate posts assigned to the reviews category.
Tested using the Magazine Pro child theme by StudioPress however will work in any Genesis child theme.
Installation Steps
There’s 4 steps :
# Step 1 – Create a new category named Reviews and assign posts to this category which can be star rated as seen in the demo video.
# Step 2 – upload the file named featured-post-reviews-widget.php to your child theme folder.
# Step 3 – Copy ( without the opening PHP tag ) & paste the PHP code from functions.php file to the end of your child themes functions file.
# Step 4 – Copy & paste the following CSS to the end of your child themes style sheet and clear caching.
Was This Tutorial Helpful?