Genesis Review & Star Rating System For Single Post Types

In this case, the template named single-listing.php enables comment authors to add a review and star rating from 1 to 5 simply by clicking the stars. This template loads on the single listings for AgentPress Pro users however can easily be used in any other theme with any other post type or standard single posts.

Reviews are then displayed before the single entry content with a average rating added before the reviews loop like this :

Add Review Star Ratings To Single Listings

To add the rating/review system to single posts or other custom post types, change the file named using the WordPress Template Hierarchy. For single posts in any category, use single.php. For single posts in a specific category named reviews, name the file single-reviews.php.

Demo Video

Shows stars added to reviews on single post types.

Tested using the Genesis Sample child theme by StudioPress with the AgentPress Listings plugin however will work in any Genesis child theme.

Also tested using AgentPress Pro.

AgentPress Pro reviews star rating single listing

Installation Steps

There’s 4 steps :

  1. # Install the WP Post Rating plugin by Shoaib Saleem.
  2.  
    Step 1

  3. # Upload the file named single-listing.php to your child theme folder like this :
  4.  
    Step 2

  5. # Copy & paste the PHP code ( without the opening PHP tag ) from the functions.php file to the end of your child themes functions file.
  6.  
    Step 3

  7. # Copy & paste the CSS from the style.css file to the end of your child themes style sheet and clear caching.
  8.  
    Step 4

Download Folder

Related Tutorials

2 responses to “Genesis Review & Star Rating System For Single Post Types”

  1. Is it possible to change the date format?

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.