Support » Plugin: Rate my Post - WP Rating System » PHP-Shortcode (only results without count)

  • Resolved katzulator

    (@katzulator)


    Hi,

    I want to use the shortcode

    <?php echo do_shortcode(‘[ratemypost-result]’); ?>

    in my theme, but I don’t want to show the count numbers after the star.

    How can I manage that?

    Thanks in advance,
    Luke

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Blaz K.

    (@blazk)

    @katzulator, this should do the trick:

    
    span#num-votes {
        display: none;
    }
    

    Regards,
    Blaz

    Hi,
    it works fine.
    But how can I also hide the vote results (ohne the number, not the stars ;-))?

    This doesn’t work:

    span#voting-results {
        display: none;
    }

    Another thing:

    If I use
    <br /><b>Rating:</b> <?php echo do_shortcode('[ratemypost-result]'); ?>
    in my single.php the word “Rating” and the stars are displayed in two lines. How can I show this in one line?!

    Thanks in advance,
    Luke

    Plugin Author Blaz K.

    (@blazk)

    For the first:

    
    span#avg-rating {
        display: none;
    }
    

    and for the second:

    
    .rmp-results {
        display: inline-block;
    }
    

    Blaz

    Perfect, great work, great plugin!

    It’s possible to center the stars in the height behind the word “Rating” and to minmize the margin bottom to set it to the equal line as the line under?

    See attachment please:
    Now: https://www.eronite.com/images/now.png
    How I want it: https://www.eronite.com/images/how-i-want.png

    Thank you so much, Blaz!

    Best regards,
    Luke

    Plugin Author Blaz K.

    (@blazk)

    Luke try positioning it relative and then define top/bottom:

    
    .rmp-results {
        position: relative;
        top: 20px; /* Change this */
    }
    

    Regards,
    Blaz

    Hi Blaz,

    great, this works.
    But if there is no rating, nothing is displayes. Can I display five “greyed” stars if there is no rating?

    Best regards,
    Luke

    Plugin Author Blaz K.

    (@blazk)

    Hi Luke,

    at the moment that’s unfortunately not possible. The results widget is loaded only if the post has already been rated.

    Regards,
    Blaz

    Hi Blaz,

    ok.

    It’s possible to give 5 stars to each post with a bulk function?

    Thank you,
    Luke

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.