How to add php plugin code in theme

If you, for some reason, don’t want to use the shortcode ([ratings]), you can always use the_ratings() directly in your template.

Make sure you are within the loop so it’ll be able to identify the correct post ID for you.

If you want to use it outside the loop, you can pass your ID manually. The function’s signature is

function the_ratings($start_tag = 'div', $custom_id = 0, $display = true) {

so you could call it as

the_ratings("div", 123)

if you wanted to output the ratings for the post with the ID 123.

error code: 523