How to manually insert a rating into a template via PHP?
Hello, I want to insert a rating in the header next to the title in the template. Tell me, is there a PHP function for inserting a rating? For example:
<?php the_title(); ?>
<?php getPostRatingHtml(); ?>
This function does not work.
Could you please clarify a bit? What type of rating do you mean?
Thre are two types of ratings:
In the case of the first one, you'll need to do some manipulations and get the data from the DB tables. If you're familiar with DB structure let us know. We'll tell you where the data are stored.