Support » Plugins and Hacks » WP-PostRatings » [Plugin: WP-PostRatings] RATINGS_SCORE

[Plugin: WP-PostRatings] RATINGS_SCORE

  • Hello,

    On the main page I show only RATINGS_IMAGES_VOTE, but
    in the subpage I want show %RATINGS_IMAGES_VOTE% %RATINGS_SCORE%
    How I can do it?
    Edit this: <?php the_ratings(); ?> ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • lisster,

    Did you ever figure this out? I’m trying to figure out how to edit the display of the voting system. I see all the template variables, but I just don’t know the syntax to use, or where to put the variables.

    Any help is appreciated.



    I found a support topic that has the answer:


    It looks like this:

    <?php if(function_exists('the_ratings')) { echo expand_ratings_template('<span class="rating">%RATINGS_IMAGES%</span> <strong>%RATINGS_USERS% votes</strong>', get_the_ID()); } ?>

    You can see a full list of the template variables (the things inside the % sign) in the WP admin section, Ratings > Ratings Templates.

    It works! Thanks a lot 🙂

    Does anybody knows how to make to call this with a shortcode?

    Thanks Escape Creative – works perfectly.

    MaxTrix – the templates/variable options are global for the [ratings] shortcode via the options page. If you are fine with using a global setup for the templates then edit the Ratings Template options and use the shortcode [ratings] on your page/post. But if you want different templates/variables for different pages/posts and don’t want to dabble into PHP/template files, CSS might be the best option. Wrap template variables with custom classes and and show/hide across your various pages/posts via the CSS “display” property.

    I figured that out already, at the bottom I show the full template and on top I put it in a div and set a font size 0px 🙂 And that works fine.

    However thanks for your answer!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP-PostRatings] RATINGS_SCORE’ is closed to new replies.
Skip to toolbar