Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    I searched for the same thing today, and I came to a solution :

    On the pages where I just want to have the stars for each post, and no vote allowed (archive page, for instance), I place the following code inside the post loop :
    if(function_exists(‘the_ratings’)) { echo expand_ratings_template(‘<span class=”rating”>%RATINGS_IMAGES%</span>’, get_the_ID()); }

    As you can see, the rating template is sent in argument, so you can replace my ‘<span class=”rating”>%RATINGS_IMAGES%</span>’ with whatever you want as rating template.

    Of course, this rating template is written inside the code, and not managed in the admin page… and we call a function that is supposed to be internal to the plugin, but it works fine if you don’t mind coding a little (and having, maybe, to change your code in a future version of this plugin).

    Oelita,

    Thank you so much. Your code for how to use the template variables works great. I searched for almost an hour to find out how to use them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-PostRatings] stars and text on the post and just the stars on the index’ is closed to new replies.