Viewing 2 replies - 16 through 17 (of 17 total)
  • @wanderingdutchman Both posts and pages are stored on the same table, and what you should pass is the page ID. So changing AND p.post_type = 'post' to AND p.post_type = 'page' should work.

    So did anyone found a way? I don’t want to use it in single.php template as I do not want it on every page. I’m using a shortcode to display it on pages I want. Just looking for a simple solution that will help to add the average star rating.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Average rating/stars for the page/post?’ is closed to new replies.