Rating-Widget: Star Review System
[resolved] Displaying ratings on limited word excerpt... (6 posts)

  1. Coretium
    Posted 3 years ago #


    I am displaying ratings on my posts and love them, they are very cool! :)

    But I'm having a few issues with excepts...

    Here is a main page I'm testing on: http://www.coretiummedia.com/portfolio/test/ ,

    And the excerpts in question are being displayed at http://www.coretiummedia.com/graphic-designer-showcase/

    The problem arises because I am needing to limit word count on on excerpt page using:

    <?php echo limit_words(get_the_excerpt(), '4'); ?>

    As a result this stops the ratings displaying on the excerpts. :/

    Is there any workaround you can think of to enable me to have the word limit but still show the ratings widget?

    Many thanks in advance,


  2. vovafeldman
    Plugin Author

    Posted 3 years ago #

    Hi Jamie,

    The way you are modifying the excerpts is wrong. You should use the excerpt_length filter. Just add the following code at your theme's functions.php file:

    // Modify excerpt length to 30 chars.
    function custom_excerpt_length( $length ) {
        return 30;
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Please let me know if that resolved your issue.

  3. Coretium
    Posted 3 years ago #

    Hi Vova,

    That worked a treat! Many thanks! ;)

  4. vovafeldman
    Plugin Author

    Posted 3 years ago #

    Awesome! Btw. I would really appreciate if you could spend 60 sec rating the plugin on WP to help us spread the word (don't forget to click the Post button to submit the rating):

  5. Coretium
    Posted 3 years ago #

    I certainly will Vova, np. ;)

    Also, is there any way to remove the 'rate this' rollover adverts. I understand it contributes to the plugin, but I don't want to bombard my users with ads every time they inadvertently roll over them.

    Many thanks.

  6. vovafeldman
    Plugin Author

    Posted 3 years ago #

    Hi Jamie,

    I totally understand your concern. But this is our way to maintain the plugin, provide free support for everyone and continue adding great features according to users requests. Furthermore, visitors can simply opt-out, or hide the ads from pages (the options are right below the ad).

    You can also support the plugin by upgrading to one of our Pro programs which are all ads free and has great additional features.

    We are customer-feedback driven company, and your opinion is highly important. Please let me know what you think.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Rating-Widget: Star Review System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic