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

    (@gamerz)

    Nope, the code is meant to be inside the loop.

    If you want it outside the loop, you need to know the post ID
    <?php the_ratings( 'div', POST_ID ); ?>

    Thread Starter Florian

    (@pictibe)

    Thanks for the fast reply.

    I use this code to get the id:

    <?php $post_id = $wp_query->post->ID; echo $post_id;?>

    but the id doesnt show me…

    have you a ready copy paste code?

    Have a nice day,
    Florian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add rating stars outside the loop’ is closed to new replies.