WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Coretium
    Member
    Posted 1 year ago #

    Hi,

    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,
    Jamie

    http://wordpress.org/extend/plugins/rating-widget/

  2. vovafeldman
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Hi Vova,

    That worked a treat! Many thanks! ;)

  4. vovafeldman
    Member
    Plugin Author

    Posted 1 year 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):
    http://wordpress.org/support/view/plugin-reviews/rating-widget#postform

  5. Coretium
    Member
    Posted 1 year 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.
    Jamie

  6. vovafeldman
    Member
    Plugin Author

    Posted 1 year 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

About this Topic