Skip to content

Instantly share code, notes, and snippets.

@manchumahara
Last active January 11, 2016 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manchumahara/0fb17bc4203a6f9c49c7 to your computer and use it in GitHub Desktop.
Save manchumahara/0fb17bc4203a6f9c49c7 to your computer and use it in GitHub Desktop.
//The standalone rating form function is used to show the rating form using direct function call from theme or other plugin
//Make sure you are in wordpress loop , to know more about loop please visit here https://codex.wordpress.org/The_Loop
if(function_exists('standalonePostingRatingSystem')):
global $post;
$formid = 1;
$postid = $post->ID; //or write the post id
$rating = standalonePostingRatingSystem($formid, $postid, 'basic', true);
echo '<div class="mycustom_class_name">'.$rating.'</div>';
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment