Title: PHP-Shortcode (only results without count)
Last modified: September 25, 2019

---

# PHP-Shortcode (only results without count)

 *  Resolved [katzulator](https://wordpress.org/support/users/katzulator/)
 * (@katzulator)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/)
 * 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 Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11971784)
 * [@katzulator](https://wordpress.org/support/users/katzulator/), this should do
   the trick:
 *     ```
       span#num-votes {
           display: none;
       }
       ```
   
 * Regards,
    Blaz
 *  Thread Starter [katzulator](https://wordpress.org/support/users/katzulator/)
 * (@katzulator)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11972824)
 * 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 Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11973039)
 * For the first:
 *     ```
       span#avg-rating {
           display: none;
       }
       ```
   
 * and for the second:
 *     ```
       .rmp-results {
           display: inline-block;
       }
       ```
   
 * Blaz
 *  Thread Starter [katzulator](https://wordpress.org/support/users/katzulator/)
 * (@katzulator)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11973105)
 * 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](https://www.eronite.com/images/now.png)
   How I want it: [https://www.eronite.com/images/how-i-want.png](https://www.eronite.com/images/how-i-want.png)
 * Thank you so much, Blaz!
 * Best regards,
    Luke
 *  Plugin Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11977420)
 * Luke try positioning it relative and then define top/bottom:
 *     ```
       .rmp-results {
           position: relative;
           top: 20px; /* Change this */
       }
       ```
   
 * Regards,
    Blaz
 *  Thread Starter [katzulator](https://wordpress.org/support/users/katzulator/)
 * (@katzulator)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11977656)
 * 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 Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11979854)
 * 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
 *  Thread Starter [katzulator](https://wordpress.org/support/users/katzulator/)
 * (@katzulator)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11979979)
 * 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)

The topic ‘PHP-Shortcode (only results without count)’ is closed to new replies.

 * ![](https://ps.w.org/rate-my-post/assets/icon-128x128.png?rev=2045796)
 * [Rate My Post - Star Rating Plugin by FeedbackWP](https://wordpress.org/plugins/rate-my-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rate-my-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rate-my-post/)
 * [Active Topics](https://wordpress.org/support/plugin/rate-my-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rate-my-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rate-my-post/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 8 replies
 * 2 participants
 * Last reply from: [katzulator](https://wordpress.org/support/users/katzulator/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/php-shortcode-only-results-without-count/#post-11979979)
 * Status: resolved