Last active
January 11, 2016 17:54
-
-
Save manchumahara/0fb17bc4203a6f9c49c7 to your computer and use it in GitHub Desktop.
CBX Rating & Review - Standalone rating form http://wpboxr.com/cbx-multi-criteria-rating-review-system-documentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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