• Resolved wahou85

    (@wahou85)


    Hello,

    Thank you for this great extension !

    I would like to show under the rating button the list of the people who have rated the post.

    I tried the code below
    `function custom_display_comment_author_ratings() {
    return true;
    }
    add_filter( ‘wp_postratings_display_comment_author_ratings’, ‘custom_display_comment_author_ratings’ ); `

    But I get an error message :
    Fatal error: Cannot redeclare custom_display_comment_author_ratings() (previously declared in /xxx/xxx/wp-content/themes/twentyfifteen/content.php:67) in //xxx/xxx/wp-content/themes/twentyfifteen/content.php on line 68

    Can you please help me ?

    Thank you ! 🙂

    https://ww.wp.xz.cn/plugins/wp-postratings/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Try just

    add_filter( 'wp_postratings_display_comment_author_ratings', '__return_true' );

    Thread Starter wahou85

    (@wahou85)

    Hello,

    Thank you for your quick answer.
    It doesn’t work.
    Nothing is displayed.
    What should I type ?

    <div id="ratings">
    <?php
    //if(function_exists('the_ratings')) { the_ratings(); }
    add_filter( 'wp_postratings_display_comment_author_ratings', '__return_true' ); ?>
    </div>

    Thank you !

    Plugin Author Lester Chan

    (@gamerz)

    Ypu have to put it in your functions.php of your theme.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show rating authors’ is closed to new replies.