Support » Plugin: WP-PostRatings » Showing highest-rated (excerpt only)

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

    (@gamerz)

    WP-Admin -> Ratings -> Ratings Template. use %POST_EXCERPT%

    I had seen the templates, but am unclear how to use them.

    I replaced title with excerpt here, but this code isn’t working properly in either a page or text widget:

  • %POST_EXCERPT% (%RATINGS_SCORE% rating, %RATINGS_USERS% votes)
  • Can you tell me what I’m missing?

Trying this again:

  • %POST_EXCERPT% (%RATINGS_SCORE% rating, %RATINGS_USERS% votes)
  • sorry…i replaced both instances of post_title with post excerpt in the highest-rated template. but it doesn’t seem to work in either a text widget or even a page.

    i don’t understand how to use the templates.

    Plugin Author Lester Chan

    (@gamerz)

    Hmm, Change the template for “Highest Rated” and “Most Rated”

    I changed mine to <li><a href="%POST_URL%" title="%POST_EXCERPT%">%POST_EXCERPT%</a> %RATINGS_IMAGES% (%RATINGS_AVERAGE% out of %RATINGS_MAX% with a score of %RATINGS_SCORE%)</li>

    http://lesterchan.net/wordpress_dev/ (left sidebar) it works for me.

    Ah, yes…now I am understanding better.

    One further question: Is there a way to limit the excerpts to a certain number of words or characters?

    thx,
    c-

    Plugin Author Lester Chan

    (@gamerz)

    Nope, you have to modify the plugin yourself to achieve that ratings_post_excerpt() -https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L524

    There is no built-in feature for that.

    Thanks for your help on this so far. I have switched to a new WP theme and it does have a widgetized sidebar. Is it possible to display the Highest Rated posts as the widget would, but just using some code instead that I can drop in manually?

    Plugin Author Lester Chan

    (@gamerz)

    Sorry I don’t get what you mean.

    I can’t use widgets in the WordPress theme I’m using for a particular site. I was wondering if there was code I could paste into the sidebar instead that would replicate the output of the plugin.

    Plugin Author Lester Chan

    (@gamerz)

    Yeap all the code are stated in https://wordpress.org/plugins/wp-postratings/faq/

    Viewing 11 replies - 1 through 11 (of 11 total)
    • The topic ‘Showing highest-rated (excerpt only)’ is closed to new replies.