Hello,
I received an answer from the plugin developer. Here it is below,
“I had a quick look at that thread, and I can guarantee you 10000% that the plugin’s code works well. Of course you need to be inside the WordPress post loop to access $post, which depends on the theme’s hook location. So even though the “hi” appears, if there is no valid post id, then of course the plugin can’t output anything.
All you need to add is this inside a hook that has the post id available or says:
global $post;
And then below all you need is this:
if ( class_exists( ‘Lets_Review_API’ ) ) {
echo Lets_Review_API::lets_review_get_score_box( $post->id );
}
I have no idea why they are saying to add empty code like this though:
else {
// do nothing
}
it doesn’t truly make a difference, but it’s really not needed either, so just use what I put above.”