Created
August 28, 2015 09:33
-
-
Save n7studios/a7874327ed32e025f5eb to your computer and use it in GitHub Desktop.
Comment Rating Field Pro - display_average_rating() example
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
<?php | |
if ( function_exists( 'display_average_rating' ) ) { | |
$instance = array( | |
'enabled' => 1, | |
'displaystyle' => 'grey', | |
'displayaverage' => 1, | |
'filtercomments' => 1, | |
'averageratingtext' => 'Average Rating:', | |
'displaytotalratings'=> 1, | |
'displaybreakdown' => 0, | |
'displaylink' => 1, | |
'id' => get_the_ID(), | |
); | |
display_average_rating( $instance ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment