Leave a Reply

Your email address will not be published. Required fields are marked *

274 thoughts on “Tutorials

  1. Hi, Dario Thanks for the plugin, I would like to know if there are a method to include this one directly on my template like this for example :
    if(function_exists("yasr")) : echo yasr(); endif; or using echo do_shortcode() that wordpress give.
    Thks for answer

    1. Hi!
      Yes, you can do something like this
      if (defined('YASR_VERSION_NUM')) {
      echo TEST;


      echo do_shortcode('your_shortcode_here')

  2. Hello, using free version of the YASR with a WordPress theme that incorporates your plugin. Why cant I put YASR ratings in the title of blog posts?

    1. Hi! Which theme is it?

      To answer your question, you can do by editing the header.php file in your theme (I suggest a child theme to do it)


  3. The plug in is nice, but it doesn’t work with YOAST SEO. When the plug in is installed, the YOAST SEO metabox goes blank due to a javascript error. This is of course unacceptable, as everyone serious about SEO uses Yoast. Please announce when you fix this, so people can enjoy your plug in. Thanks

    1. Hi, I use YOAST on all my website without any issue (and on this website too): can you please share a screenshot of the javascript error?

  4. Hi. When I put the short code in my post, it automatically puts a line of space before and after the stars in my post.

    So I want to write something like this:

    “Rating: 4/5”

    But it actually displays



    How do we get rid of this line space between?

    Thank you!

  5. Hi Dario,

    First of all, thank you for this awesome plugin! I am facing an issue and I hope you will be able to help me.

    When I delete my ratings (created for testing) in Logs, it empties the list and also the database (wp_yasr_log)
    But the ratings are still visible on the page (the div keeps the data attribute data-rating=’3′)
    I don’t understand why and what should I do to really reset my rates to 0 (zero).

    Thank you for your help

    1. Hi, sorry for the delay!
      Yasr comes with a kind of “caching” system, I just noticed that when the rating is deleted the cache is not.

      I will fix this for next version, thank you!

  6. Hello,
    I’m using a lot of add-ons on my WordPress site. After PHP 7.1 update only your plugin gives error message. What would be the reason?
    Warning: include(/…/wp-content/plugins/yet-another-stars-rating/lib/admin/yasr-metabox-top-right.php): failed to open stream: No such file or directory in …/wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php on line 286

    Warning: include(…/wp-content/plugins/yet-another-stars-rating/lib/admin/yasr-metabox-top-right.php): failed to open stream: No such file or directory in …/wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php on line 286

    Warning: include(): Failed opening ‘/…/wp-content/plugins/yet-another-stars-rating/lib/admin/yasr-metabox-top-right.php’ for inclusion (include_path=’.:/opt/php71/lib/php’) in /…l/tayfununal.com/wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php on line 286

    1. It’s not related to php version, today when I tried to commit the new releas SVN return error for a couple of min.

      Update to version 1.9.1 and this will go away (I also suggest to use php 7.2)

  7. Hello,

    I have been using the old GD Start Rating and I wish to migrate to a new rating plugin.

    My usage is mainly with user-rating multi-sets, in custom post types. I set the criteria for the multi-set for a certain post type (here “race”) to allow users to rate each post.

    Before I purchase, I would like to ask the following:
    – Will I be able to migrate and salvage the past user-rated multi-set data from GD Star Rating?
    – Which packages / add-ons do I need to purchase exactly?

    Thank you

    1. Hi, Gd Star Rating importing has been dropped out.
      add-ons doesn’t exists anymore: now there is a free and a pro version of the plugin

      1. Left you this question yesterday in my ticket on your plugin, and did not get a response.

        “I have looked for that option but could not find it. Only found that using [yasr_visitor_votes size=โ€mediumโ€] I could restrict that option to logged in users only. Please advise?”

          1. Okay… so, if I use [yasr_visitor_votes size=โ€mediumโ€] so that I’ll have fewer short codes to change, do I resolve the issue of reputation managers from fraudulently changing the ranks I set by selecting “Allow only logged-in users” under “Allow only logged in user to vote?”

            1. Never mind Dario… sorry for being a pain. Have decided to go with this short code [yasr_overall_rating] instead. Aggregate… right? Thanks HEAPS.

            2. If you use yasr_overall_rating you’ve to select “Review Rating”

              Click on “What’s is this” for more info

  8. Can I ask you what’s the shortcode for an overall rating. I can post multiset or average ratings in modules/widgets but for some reason I can find the shortcode to post a simple (non-multiset) rating in a module/widget

      1. ok, found it. Now to complete the monologue ๐Ÿ˜‰ I’d like to customize the style of the multiset (blank background, no border, just the stars… If anybody had suggestions )) Thanks.

        1. Ep. 4 : Managed to get a white background fixing the stylesheet, but not sure about border and spacing… But more importantly, is it possible to get medium sized stars in multi set ? It seems only smalls ones are available.
          Not teasing you but I like your plugin and will definitely donate if it’s possible cos the stars are really too small for my layout on the multi set.
          Back to the style sheet… Learning CSS and php on the fly…

          1. Hello Mark, sorry for the delay of this answer.

            Multi Set for now has only small star size.

            In the next feature, and only for the pro version, star size will be customizable.


  9. How can i add it on my theme manually? like insert a php code? Could you give me a sample, it would really he alot thanks!

  10. Hi, i use yasr on my blog with the aggregateRating rich snippet. I wanted to ask, if it is possible to use both rich snippets. In the settings i can only choose between the aggregate rating and the review rating. But i want to use both different rich snippets. Is this possible?

    1. Hello, thank you for using Yasr!

      This is not possible with the plugin, you should access your db and export the Yasr Tables.
      I’ll add this feature soon.


  11. Hello, thanks for your plugin.
    my website have a huge data, I installed your plugin for some days, it makes the website very slowly,. i found that there is many data is added in wordpress options table. i want to know how to remove those data in options table? thanks.

    1. Hello James, thank you for using Yasr!

      I guess you’re talking about of options with prefix _transient_ .
      That rows are needed to have faster queries (here a link to Transient API)
      I suggest to keep that rows, even if they’re a lot in your db and can be impressive, I really don’t think that this is the cause of the slow site.

      Do you have a link to the site?


  12. I have a site that has a page of audio players 10 or so on one page, can I use this plugin to let the visitors rate each file? I have tired putting the short code under each one but it seams to all have the same rating as it is for just the page id. Is there a way to use multiples on one page?

    1. Hello Dean, thank you for using Yasr!

      Like you guessed, the shortcode is connected with a post or page.
      To accomplish your needs, you can do this:
      Create a new post (don’t need to publish, just as a draft)
      Take a note of the new postid (if you don’t know where to find, take a look to this tutorial

      Add the shortcode like this

      yasr_visitor_votes postid="XXXX"

      where XXXX is your postid.


  13. The plugin looks great, but i have a small issue??? I’ve used the code for several thinks that i want to rate [yasr_visitor_votes size="small"] and when i’m rating something it automatically rates everything ales. Is it because it’s the free version??? Let me know because I really like the plugin.

    1. Uhm I think to know where the error lies: seems like your theme is one page only and the articles are loaded in lightbox, and all article are sharing the same postid; this is really wrong!
      To make yasr work, in this case, you should specify the postid manually, i.e.

      [yasr_visitor_votes size="small" postid="XXXX"]

      where XXXX is the post id. Read here on how to find this value

      Every article has his own postid so you’ve to do this manually on every post…or simply change the theme ๐Ÿ˜‰


  14. Hello! So far, your plug-in looks great for us. We had a business directory and used another plug-in which failed after many months of success. During thos emonths, some posts and listings had as much as 1300 ratings. Now that we have installed your plug-in, we don’t want to start with “1” vote. If we knew a listing had, for instance, 987 3-star ratings, what custom field can I add to asdsure we start with 987, instead of 1 vote? On the business listing admin page, I have these custom fields available to me:

    yasr_overall_rating 4.6

    yasr_review_type place

    So, I want something like yasr_visitor_votes 987

    Or something like that, so I can “start” the number of where we left off with the prior plug-in

    Can you assist with what that form field would be?

  15. Hello! Can I remove the text:
    [Total: 1 Average: 4/5]
    You’ve already voted this article with 4.0

    … which comes after each rating?

    1. Hello Patrick, thank you for using Yasr!

      In the settings, open the โ€œAspect & Stylesโ€ tab and on โ€œCustom Css Stylesโ€ add this:

      .yasr-total-average-container {
      display: none;


  16. Hi, i put this in my custom template “” but, in my front end, just appears total:0 average: 0 and a litle graphic, how i can do to make my visitors can vote? i just working in localhost

  17. Hi, need to change the stars color and background color, please what CSS code must use?

    1. Hello Gaetano, thank you for using Yasr!

      The stars are .png images, so you can’t change the color sorry!


  18. Hello Dario,

    Thanks for the plugin. Just started using it, and seems really promising.
    Here’s my question,
    I know it is possible to allow visitors to vote on a multiset, but can we show total results of this visitor multiset as a readonly as well?

    To elaborate.. I have two pages, one that will allow visitors to vote, and other that will only display the voting results.

    I am using [yasr_visitor_multiset setid=0 postid="2645" size="small"] to allow visitors to vote for a specific post, but when am [yasr_visitor_multiset_readonly setid=0 postid=”2645″ size=”small”] or [yasr_multiset setid=0] these results don’t show the user ratings.

    Can you help me resolve this?

    Many thanks

  19. Hi there,

    I’m trying to use YASR on an https site, using custom stars. The page won’t load securely because the custom stars try to load via http://.

    Is there a way to work around this?


    1. This is pretty strange, for example this site use ssl and everything is loaded properly…do you have a link to the site?

  20. Hello Dario,

    Great plugin! Is there a way that I can prevent the shortcode from automatically loading on a specific custom post type? I have it enabled for all custom post types, but in my “CM Answers” pages the shortcode isn’t getting converted. I’d rather not have it load there anyway since CM Answers has its own rating system. Any thoughts?


    1. Hello Andy, and thank you for using Yasr!

      Unfortunately this is not possible (yet)…the only solution (without use code) is to deactivate auto insert and manually insert yasr where you need it!


      1. Thanks Dario. What if I filter out your shortcode out of the content immediately after your plugin inserts it, based on the custom post types I choose? In CM Answers your shortcode is not getting transformed into the rating system but instead displays as raw shortcode. I may try that, unless you think it’s not possible.

        1. Hi Dario,

          I was able to pull your shortcode out of the custom posts that I didn’t want to include. Here’s the code for anyone else who has “Use only in custom post types? ” set to yes, but want to prevent Yasr from loading on *certain* custom post types:

            1. Hi Dario,

              I’ve purchased two extensions and am excited about the plugin. I run a science fiction/fantasy/horror review blog and only want to use the ratings on posts in a certain category (“SFF Reviews”). There are almost 5300 posts in this category, so I don’t want to manually insert the shortcode. I could try doing a regex search and replace to add the shortcode to those types of posts, but I’d really prefer to add some code to single.php so I can style it as I’d like. Do you have instructions for this anywhere?


            2. Update: I can do most of what I want with SQL:

              UPDATE wp_posts post
              LEFT JOIN wp_term_relationships tr ON (tr.object_id = post.id)
              LEFT JOIN wp_term_taxonomy tt ON (tt.term_taxonomy_id= tr.term_taxonomy_id)
              SET post.post_content = CONCAT( ‘Average reader rating (if you have read this book, please rate it in the comments): [yasr_pro_average_comments_ratings size="small"] \n \n ‘,post.post_content) WHERE tt.term_taxonomy_id = 15
              AND tt.taxonomy = ‘category’
              AND post.post_status = ‘publish’

            3. Hello Kat, thank you for your purchase and sorry for the delay of this answer!

              I’m glad you’ve resolved this ๐Ÿ™‚


  21. Hi I’m geting an error “I’ haven’t been able to comunicate with yetanotherstarsrating.com. Most probably your hosting can fix this”.

    I have tried everything, deactivating/activating, adding the “Sites URL”s, “adding again the “License Keys”, but nothing seems to be working.

    Any help will be very much apreciated.

          1. The rating stars plugin seems to be working fine because the votes, averages and everything is well displayed, but in the WP Dashboard this message is shown and every time a user votes this message is displayed (although the vote is well processed).

            I have disabled the “echo”procedure in the “yet-another-stars-rating-pro\lib\pro\EDD_SL_Plugin_Updater.php” file inside the “yasr_pro_check_license” function.

            // make sure the response came back okay
            if ( is_wp_error( $response ) ) {
            //echo (“I’ haven’t been able to comunicate with yetanotherstarsrating.com. Most probably your hosting can fix this”);

            But this is not a good solution.

            My 5 licenses expire on July 15, 2016.

            thank you very much for your help.

  22. Hi Dario,

    I like to give visitors of my website to create their own rating for a particular product (actually service) instead of a pre-set list of products they have to choose since product they like to rate might not be in the list. Is this possible?

    Thanks for your help.



    1. Ivo? My name is Dario ๐Ÿ™‚

      If you want to edit the visitor votes this is not possible for now, you should delete it from the database.

      If you need the ranking from the visitor votes, this is the shortcode that you need to use yasr_most_or_highest_rated_posts


    1. Hello Igor, thank you for using Yasr!

      It’s not possible to use get_posts, you should use a standard query with the yasr_votes table


        1. This is the query used for the shortcode yasr_top_ten_highest_rated

            1. Hello Dario,
              I am looking at sorting the list of posts using the Average rating, is there a meta_key for this by any chance? Please pardon if my question is not clear.
              Thank You

            2. Hello Divya, thank you for using Yasr!

              Just to be sure: do you need to order the rating from shortcode yasr_overall_rating or yasr_visitor_votes?
              If instead, you need to sort the average rating of a multi set, you should query the db using wpdb->query


  23. Hi guys, i’ve been running your pluggin for a while and I love it.

    For some reason, it quit working since the last few updates… My micro data isn’t there anymore and the short code doesn’t seem to be picked up by the plugin in WP anymore…

    Any cues?


      1. Hi Dario,
        I can trigger the star rating on my wordpress article anymore which is odd…
        I had the short code as usual and nothing gets pick up.

        Thanks for looking into that!

  24. Ciao Dario, complimenti per il tuo plugin รจ molto utile. Prima di prendere la versione PRO sto visionando quella free, ed essendo io un neofita su tutto ciรฒ che รจ programmazione, volevo chiederti se รจ possibile inserire le stelle di votazione per diversi articoli (es: 5 articoli diversi) all’interno della stessa pagina del mio Blog?
    Immagino si possa fare ma non ci sono riuscito fin’ora; riesco a inserire le stelle per ogni articolo, ma se poi assegno un voto a un singolo articolo mi riporta lo stesso voto anche su tutti gli altri articoli presenti nella pagina. Sbaglio io qualcosa, sicuramente.


    1. Ciao Giorgio, grazie per usare Yasr!

      Si รจ possibile, ed รจ molto semplice: basta infatti specificare il postid nello shortcode, per esempio:

      [yasr_overall_rating postid='POSTIDPERPAGINAX']
      [yasr_overall_rating postid='POSTIDPERPAGINAY']
      [yasr_overall_rating postid='POSTIDPERPAGINAZ']

      Qui c’รจ un link che spiega come trovare il postid.

      Fammi sapere!

  25. Ciao un altra Domanda, come e possibile o dove e possibile, a mettere und “width” personale? Adesso il mio “multi set” contiene il “width” 100% del possibile content.

    1. Ciao, la classe รจ questa: yasr_table_multi_set_shortcode

      quindi puoi andare nelle impostazioni di Yasr e nel tab “Aspect & Style” aggiungere questa regola:

      .yasr_table_multi_set_shortcode {
      widht: XXXX;

      Buon lavoro!

  26. Hi Dario,
    thanks for this great plugin! One question:

    After some testing on a new website I want to reset all user-votes to zero. I can’t find an option to do this.

    Even after deinstalling of you plugin, deleting the tables wp_yasr_xxx in the mysql database an reinstallting your plugin the old votes are shown. It seems to me that yasr additional stores the votes somewhere .

    Thank you,

    1. Hello Freddy, thank you for using Yasr!

      You did all good, the rating doesn’t exists anymore….but Yasr uses WordPress Transients to cache data so that’s why your rating is still showing; you can:
      1) Wait for a week until when cache will expire
      2) login into phpmyadmin, table wp_option and delete all the rows with this options name prefix yasr_visitor_votes_


      1. Thanks a lot, Dario!

        Don’t know anything about WordPress Transients until know. Will read the information behind yout link.

        An additional aspect was the browser-chaching. Must delete it for 2 times – now everthing is fine… ๐Ÿ™‚

        Keep up your good work!


  27. hello! thanks for a great plugin. i have a problem though.

    im using the widget “most popular” but when ranking the posts i cant get the stars to shine.
    say i give a post 5.0 in ranking but when going to my homepage the ranking is 0.0.
    what can i do to sort this problem?

    thank again.

      1. HEy, tnx for the answering. I’m new at this.. can you be more exact and tell me the whole short code if now i am using this one

        [yasr_visitor_multiset setid=0]

  28. Ciao Buongiorno!
    Complimenti per il plugin.

    Ho un problema…Non riesco a vedere le stelle nella pagina delle categorie (Archivio).
    Ho solo il testo [Voti: 0 Media Voto: 0/5].

    E’ possibile inserire le stelle senza far votare nella lista dei post?


    1. Ciao Mario, grazie per usare Yasr!
      Si, usando lo shortcode yasr_visitor_votes_readonly.

      Per quanto riguarda il problema, penso che nelle tue pagine archivio ci siano errori js: mi puoi passare un link?

  29. Hi,

    I’m struggling with your plugin to let users actually rate single posts.
    I don’t want it to display automatically nor via article editor, but I’m instead addiing the shortcode in my template.

    These are my current settings http://i.imgur.com/8d4wP7T.png
    This is how I insert the shortcode
    And this is the outoput I get, no stars, no way of rating the post. http://www.universitycoffee.it/2015/12/10/dna-vita-in-codice-ed-evoluzione/

    Can you help me with this, pleeeease?


  30. Hello again, Dario! I was wondering if you can recommend a plugin that would enable a user who is using your YASR plugin to upload associated photos for the business for which he/she is rating.


    1. Hello, thank you for using Yasr!

      At the moment this is not possible, I hope to develop this as extension for March.


      1. Hi Dario. Thanks for the super prompt response. I am trying to see if I can implement a work around the 5-star requirement.

        (1) Is there a way to change the star’s cursor hover text from “bad”, “poor”, “ok”, “good”, “super” to “absent”, “poor”, “fair”, “good”, “excellent”, respectively?

        (2) If necessary, is it possible to omit the “absent” ratings from the overall ratings calculation?

        (3) Is it possible to add additional descriptive text (i.e. around 300 characters) to the right of “absent”, “poor”, “fair”, “good”, “excellent” when the user’s cursor hovers over the stars? (This is to allow the user to objectively assign the appropriate star rating based on a specific criteria, and that criteria will be described in this 300 character text. If you think there is a better way to do this. Let me know as well.)

        Thanks again in advance.

        1. 1) If your site is in English, in plugin dir, open file /lib/functions.php and on line 57 change this

          $tooltip_values = __(“bad, poor, ok, good, super”, ‘yet-another-stars-rating’);

          with the values that you wish (don’t forge to use commas to separate values)
          If you’re using another language, just change the value in the .po file in the /languages dir

          2) This is not possible sorry

          3) It could be possible, but it’s not a good idea to use the title attribute (that is the one that yasr use there ) for that scope.


  31. Hi Dario,

    I just found your plugin and tried it. But it’s not working correctly it seems. After using your plugin, google SDT shows 7 errors.

    Basically this plugin is not able to fetch author, image, name, publisher, dateModified and mainEntityofPage from website to Google SDT except .

    If you may want to check it-


    Any help would be appreciated.

    1. Hello, thank you for using Yasr!
      Yep, I already know this happens when BlogPosting is used, I think google has changed recently something, I’ll release a fix for version 1.2.1.


      1. Thank you for responding back.

        In that case, assuming google’s strict nature, this plugin won’t help showing rich snippets till all the errors are gone? I suppose you’re the better person to answer this. And if you have any ETA on fix release then please care to inform.

        1. Sometimes it adds the stars in the search result even if there are errors, but every site is different.

          I don’t know when will be released yet, hope for the next week.


  32. Thanks a lot for this great Plugin!

    I dont want to have the jquery-ui.css, i want to style everything by my own.
    How can I remove it?

    1. Hello, thank you for using Yasr!
      You’ve 2 ways to do this:
      Select no at this question: Do you want show stats for visitors votes?

      or add this on your functions.php

      add_action('yasr_add_front_script_css', 'yasr_remove_jqueryui', 99 );

      function yasr_remove_jqueryui () {
      wp_dequeue_style( 'jquery-ui' );

      I haven’t tested this code but should work…let me know!

  33. How do I get this plugin to let me just insert a single line star rating (i.e. 3/5 stars, for example) in the body of my posts without having to turn off auto insert? When I use the short code with auto insert turned on, nothing displays but the actual short code. Also, I installed the custom rankings extension and I had to deactivate it because it started sending me to blank pages when I tried to edit or preview posts. I’m running WP 4.4.1.

          1. Uhm I see a lot of js error in your page…I guess that’s why rating doesn’t appear but text do. Can you please try to disable all your plugin 1 by 1?

            1. Thanks so much for the reply. I went through my plugins one by one and it seems YASR has a conflict with the NextGen Facebook (NGFB) Pro plugin. I disabled the latter for now. Hopefully a future update will solve the issues with that since I use it to push out to various social media sites.

            2. Seems like yasr js file doesn’t get loaded at all. This is because your theme doesn’t support wp_footer (I guess is an old theme).
              Simply add the wp_footer function before the closing body tag, as described in the link.


            3. Yeah, I added that to the footer, and it’s displaying the stars, but not pulling the ratings from my dashboard, just keeps showing an editable box, regardless of which short code I use. And the user rating and our rating rankings aren’t being populated or even following what’s set in the preferences. I won’t even bother with it until I update to a new theme, which I’ll be doing soon.

  34. Are there any database tables linked to this plugin? Is it ok to delete the GD rating system tables after getting it imported to YASR? Is Overall rating for admin user only? Thanks.

    1. IF you wish, after the imported is done and you’ve verified that everything was imported fine, you can delete the gd star table. Hovewer, I suggest to keep them: if gd star is disabled that tables will NOT slow down your site.

      Overall Rating is for users that have the publish_posts ability

  35. Hey there,

    I use the plugin and love it! However, I am wondering how to change the [name] tag in the scheme, which is actually the title of a post, to a shorter version when there are long titles. Any way to handle this using the short code?


    1. It’s not possible through shortcode, eventually I suggest to use a smaller font if you don’t want to edit the plugin code.


    1. Hi Jason, thank you for using Yasr!

      First of all, have you read this important news?

      If you wish to enable the “user review” feature, first of all you should enable your user to comment a page ( I don’t see the comment form in the page you linked) and only later you can enable the user review in the yasr settings ๐Ÿ˜‰ (please update from pro to extensions)

      1. Hi

        Sorry I don’t really understand. How do I enable the user to comment or add a comment form?
        Will this only work on posts and not general pages?
        Do I need to purchase another extension now to allow me to add user comments?
        I originally bought the pro version.

        Thank you

  36. hi , tnx for good plugin
    how we can show it in a box or inside date ( info bar of posts ) , showing plugin in content isn’t good style

    thank you

    1. Hi, thank you for using Yasr!
      There are many ways to do this: you can create a standard html div, and put inside the shortcode.
      Or you can use a plugin like this one, and, again, put your shortcode inside this!


    1. Hi Matt, thank your for using Yasr!

      If you wish to inser it into a template use this

      < ?php echo do_shortcode('SHORTCODEHERE'); ?>


  37. I have a couple of questions/issues I’m hoping you can help with…

    1. How do I remove the line inserted at bottom of post that reads:
    Living Your Purpose written by PSI Seminars on November 10, 2015 average rating 4.5/5 – 4 user ratings

    2. Even though I have entered custom text to display when a non logged user has already rated as follows:
    You’ve already rated this podcast.

    It still says:
    You’ve already voted this article with 5.0

    You can see on the post here: http://psiseminarspodcast.com/teleseminars/personal-development/purpose/

    1. Hi Guarav,
      sorry but I really don’t understand what you’re asking for…

      In that page I see one shortcode, yasr_visitor_votes that is working fine.
      If you wish to insert more yasr_visitor_votes shortcodes you can insert the postid just like you were doing before.

      The stars on the comment field will be always different from the yasr_visitor_votes shortcode.
      It works on the comment form of that single post or page so it will rate always that single post or page.

      You can, if you wish, show an average from your comment field reviews using this shortcode yasr_pro_average_comments_ratings. In this shortcode you can pass the postid if you wish to show an average from another post.


  38. I was wondering if I can use this for a lot of products on 1 page. I was using the shortcode [yasr_visitor_votes size="medium"][yasr_overall_rating size="medium"] but it doesn’t seem to be working per product. It just say’s I’ve already voted for ALL of them. Anyway around this so I can allow visitors to vote on each product?

    Secondly, The text after the overall rating is not changing for me. I changed and saved in the settings but it still say’s” You’ve already voted this article with 5.0. Do I need to upgrade for this to work?

    Thanks in advance for your help.

    1. Hi, thank you for using Yasr!
      1) Yes, just use the “postid” parameter on the shortcode, e.g. [yasr_overall_rating size="medium" postid="YOURPOSTID"]
      2) If you have this sentence “Youโ€™ve already voted this article with 5.0” your talking about the visitor votes and not about of the overall rating one ๐Ÿ˜‰


    1. Hi, thank you for using Yasr!

      In the Yasr settings, did you selected “Review Rating” at this question: Which rich snippet do you want to use?


        1. Ok, there is now an sure answer for this, on some site it need just a couple of hours and on some site it need 2 or more weeks.
          Just wait ๐Ÿ™‚

            1. when i clikced the link i get this message

              “The URL timed out. Make sure it is responding in a timely fashion to requests from Google.”

              so please help exactly how long it takes and also once a post got indexed,all others will start indexing from time of i post?

  39. Hi Dario,
    I have first tested the free version and now have bought the pro version:
    In the free version there was no bottom line something like: “page title” written by xyz average rating … etc.
    It would be nicer without the line but it seems to important for the Google SERP is that correct and only ratings of the pro version appears in the SERP?
    I have done some testing and clicking myself. Where can I reset the counter and start new to eliminate my votes?
    Thank you

    1. Hi Micheal, thank you for buying yasr pro!!

      Both version has the rich snippet, I guess you were using yasr 0.9.8 that use only json-ld instead of microdata: that’s why you didn’t see the sentence at the end of the post.
      Hovewer, from version 0.9.9 (and version 0.5.1 for the pro) yasr support both microdata and json-ld, with microdata as default, this because json-ld is not yet fully supported for the review.

      For answer to you question: yes, both versions (free and pro) has the rich snippets ๐Ÿ™‚

      You’ve to login in your database, and delete all the raws in the table PREFIX_yasr_logs and PREFIX_yasr_votes .

      Remember that to get faster support you can subscribe to the private forum that is linked in your purchase receipt.


      1. Thank you Dario, this support is als extremely quick.
        Actually I was using the 1.0 free version, downloaded today and microdata was checked (very sure about that)

        1. Maybe the post didn’t have the rating?

          If, for example, in the settings “Review Rating” is selected as default rich snippet, but the article hasn’t a rating (the one showed by the overall_rating shortcode) the sentence doesn’t show up at all.
          Same thing for the aggregate rating: if no one has rated on visitor_votes shortcode.

          You can test yourself in the pro: after delete all your test rating in the db, all the sentences will disappear ๐Ÿ™‚


  40. Hi,
    I just purchased the pro plugin and I had a few questions –
    For a multi set, is there any way to show the average for each row instead of just one overall rating? Maybe pulling in the data from the tables some how and echo it out on single CPT and CPT archive?

    a. “Reviews in comments for this post / page are DISABLED
    Check / uncheck to enable/disable reviews in comments
    Reviews in comments disabled” — How can I make this enabled by default for all CPT posts?

    b. “Rating
    Review Summary ” — I dont need the extra rating field, I need the comment field to go along with the multi set reviews. How do I change this?

    1. Hi, thank you for your purchase!
      1) This feature should be avaible in the next version

      2a) in the yasr settigns, go to “Pro Options!” tab and then “Reviews In Comments Options” and select “yes” at the question “Enable on every post and page?”

      2b) for now you in the comment is possible to rate just on a single line, but I’m already working to integrate a multiset in the comment form, should be avaible for the end of month ๐Ÿ™‚


      1. Did you rated it on the edit screen (see video tutorial) and later [yasr_overall_rating] shortcode still gray? If so, can you please post a link to your site? — I didnt rate it on the edit screen. Users will not rate the posts on the backend, it will be done front end, so overall_rating will not be useful. I will need the visitors ratings.

        1 & 2b — Do you have an expected date for the release?

        2a. — Wont this enable it for all post types though? I just need it for one post type.

  41. Hi,

    great plugin. But I have an issue. On some pages (3 of 20) the plugin put an extra div in the html code. After this, the sidebar is not right on the content, it is under the content, on the bottom.

    If I disable the plugin, everything is ok.

    I use the avada theme

  42. Hi,
    Is there anyway to remove the restrictions to rate? How would I allow visitors to rate and review multiple times on a sample page or post or custom types?
    Thank you.

    1. Hi, this is not possible by default, but a non logged in user can vote again simply by deleting the cookie.

      A logged in user can always update their vote.


      1. This of course is intended for the multipe vote on a sampe page or post, but they can vote limitiless on different post or page (just 1 vote for page)


  43. Hi,

    I would like to know if there exits the possibility to use and see the same [year visitor votes] element on the same page after changing the language. I have this issue: After changing the language all the data regarding the same [year visitor votes] seems to be different, like if the user was in another page.

    Thank you very much.

  44. Hello Dario,
    Thanks for this plugin !
    Unfortunatly, i can’t make it work ๐Ÿ™
    The plugins is working on a basic theme, but when i try to use it with my theme (RightNow, a Themeforest template : http://themeforest.net/item/right-now-wp-full-video-image-with-audio/1575990), the stars aren’t shown. It’s not a css problem, because when i check the code there is only :

    Instead of the full DIV.

    I bought the full version, and will be glad to make it work on my theme :/ (i can give you my website address if you need it).
    Thanks dude

    1. Damn, i wanted to copy some html here, doesn’t work :p

      the div is closed after the “data-rateit-value=-1.0”, instead of having the button id..etc, the div id = rateit-range..etc

            1. I deleted the video, the error is gone, but it changes nothing on my Stars :p
              Thanks for your answer !!

            2. Ok, so I think that it’s because you’re inside that “pop up”
              What happens if you try to insert it outside?

            3. Yeah, but the problem is that this theme works like that…
              The “popup” is a page in wordpress…something is not loading that’s why the stars won’t show, and i was hoping you would know what, so i can modify some js to make it work :p

  45. Hi Dario,

    We managed to enable regular comments in our posts, but user reviews don’t show up yet.
    Example: http://bit.ly/1OK28Dz

    Can you show me an example site where I can place a review with stars and a user comment?

    I can also send you a login to our site (by e-mail) if you wish.

    Thanks! Renรฉ

      1. Hi Dario,

        I asked the theme developer how the comment section didn’t show up. This was the reply:

        There is a standard hook in this theme โ€œcomment_form_after_fieldsโ€. I suggest asking the author why they are not using that hook or just ask what hook they are using.

        Can you answer this for me? Thanks! Renรฉ

        1. That is exactly the hook I’ve used; hovewer, I’ve an idea, please try this:

          in the plugin dir, open file lib/pro/yasr-pro-comment-form-functions.php and on line 114 change this

          add_action( 'comment_form_after_fields', 'yasr_pro_add_input_to_comment_form' );

          to this

          add_action( 'comment_form_after_fields', 'yasr_pro_add_input_to_comment_form', 999 );

          then on line 122 change again this

          add_action( 'comment_form_after_fields', 'yasr_pro_add_input_to_comment_form' );

          to this

          add_action( 'comment_form_after_fields', 'yasr_pro_add_input_to_comment_form', 999 );

          Let me know,

            1. Hi Renรฉ, sorry for the delay of this answer, looking to your site seems like you’ve already fixed this ๐Ÿ™‚


    1. Hi Antony, thank you for using YASR!
      You can simply use the visual editor and palce it to the right, just like an image or a text ๐Ÿ™‚

  46. We just purchased the Pro version and are about to set it up for BuddyPress/bbPress setup.

    I plan to add ratings for postID and threadID. I know I have to do my own code in the_loop() and that’s fine.

    I have a feature request that has also been mentioned in this comment chain and I wanted to tweak the suggestion in a way that makes sense.


    User Ratings – The tweak is to use something similar to $overall_rating, except instead of averaging just the ratings for that post/page/type, alter it to average the all ratings where the current userID was the content creator (recipient of the rating).

    Simple and effective. We can now add ratings to user loops so I can display user ratings in the forum under each user’s avatar/profile info, on BuddyPress member profile pages showing each user’s ratings in their profiles, or ANYWHERE there’s a loop for member info.

    It’s not a full-blown user-rating addition, it’s a much smaller tweak to just check for average ratings of all content created by the current userID in the content loop.

    To get slightly more advanced, some conditionals would be good like:

    where/where now X (catID, for example) so that you could narrow down user ratings a little better if you don’t want certain content ratings to be counted/averaged for a user’s overall content rating.

    This feature ( I hope I explained it in a way that makes it clear and easy to implement) coupled with usage inside custom content loops makes for an almost limitless amount of possible uses. I would love to see this in the near future if at all possible.

    1. Hi Matt, thank you for buying YASR PRO!
      I really like this, I’ll will implement for sure, but I can’t say when yet, I hope in a couple of months ๐Ÿ™‚


  47. Hey!
    We are trying YASR free version before purchasing PRO one.
    On our website we have many categories (grocery stores, electronics stores, bars, restaurants, clothing stores and so on), can we somehow use [yasr_top_ten_highest_rated] for each category separately?

    Plugin is great! Keep it on!

    Thank You,

        1. This is another feature avaible in the pro version ๐Ÿ™‚ (up to 30, but you can change it just making a simple edit in the code)

        1. This is not a problem, it’s how it is intended to work ๐Ÿ™‚ (you can wish to refrain on some criteria)
          This is why there is the number of votes near the stars…(you can chek it on the demo site)

          1. But can we somehow make it always visible and always vote-able? All 3 rows? This is what we need ๐Ÿ™‚ Check our website and you will understand. Also would be nice to be able to let people revote in like one month… Possible?

            You have all the features in PRO version and I respect Your time and business but if You would have Trial version – it would be epic! ๐Ÿ˜€

            Hope for fast reply!
            Best, Alex.

          2. I am thinking if we will understand each other right.
            Of course some people may want to vote for only one or two criterias, but others may want to vote for all criterias (but others can’t see them after someone votes for one only). And we would like criterias to be always visible as if I would just vote for all three even if I didn’t.

            I hope You follow what I mean ๐Ÿ™‚

            1. And of course people will always seen al the criteria, just with different averages ๐Ÿ˜‰

            1. aaaahhhh ok, now I got it ๐Ÿ™‚
              Yes, I can confirm this bug, I’ll fix it asap!


          3. Can You please notify me via email when You will fix it? ๐Ÿ™‚
            We will test it couple of times and apply to our website again (we have ~500 pages and I was doing it manualy… (is there any easier and faster way to add shortcodes to pages? just asking))

            Great plugin, hope this was the only bug! ๐Ÿ˜€
            Only the best wishes, Alex.

  48. Hi;

    We inserted a read-only Multiset on one page with this shortcode using the editor:
    [yasr_multiset setid=0]

    Now, we want to set some values but we can not do it.

    What is the way?


  49. Hello,

    How is it possible to display only numbers for the overall rating?

    Id like to have it so on the home page it displays the overall rating for a post like “7.2” but just the number?

        1. In the plugin dir, open file lib/yasr-shortcode-functions.php and on line 72 (it should be an empty line) and add this:

          $shortcode_html = $overall_rating;

          I haven’t tested this code but should work with no problem…Let me know


          1. hello, it works, kinda of. Now all i have is “-1” on the home page.

            im using to display the overall rating is this correct? ive added a rating of 4 on one of the posts but its still displaying -1 on the home page

            1. Hi, -1 appears on the page where you haven’t voted.
              Does it works good on single post or page?

      1. And to vote for a custom post on another different custom post? (i have a few fields from another custom post on a custom post), thank you for your response

  50. Hi Dario, I have created several unique posts and given them ratings on their post pages. Now I am looking to refer to their rating on the homepage of the website — is there shortcode to do this or another way to accomplish this? Thank you.

    1. Hi Alex, thank you for using YASR!

      I’m not sure what you mean: do you want to refer to their vote singulary? If so, just use normal shortcodes (I think the overall rating one in your case)

      Have you enabled, in the settings, this:
      -Show “Overall Rating” in Archive Page?
      -Show “Visitor Votes” in Archive Page?

      Or you mean something else?


      1. Thanks for the response! I was actually trying to ask if there’s a shortcode to manually display a star rating (4 1/2 stars, 5 stars, etc) without it being attached to a specific item.

        I have a post that is a review for a product, and a 5 star rating there. I mention the same product on another page alongside several others, and wanted to display it’s ranking next to it, however on this new page if I use the [yasr_overall_rating size="small"] shortcode it just results in a rating of ‘-1.0 out of 5 Stars’.

        1. overall_rating need to get the post_id to work: if you insert in a page that has no vote, it will get the id of that page, so it will show -1

          Outside a post or page, you can insert it only if there is a loop


  51. Hi there
    Is there a way for a bit of code to be added to a page template instead of using shortcodes?
    The theme I am using is not working with shortcodes.

        1. You can create up to 99 different multi set (you can use multiset in every post or page you want, there is not limit) and each multiset can have up to 9 voices.
          Was that your question?

            1. I’m pretty sure you didn’t get the point. This is a multi set

              And this is 1 multi set.
              A second one multiset could be:


              And so on.
              Each multiset can have up to 9 different rows. . You can insert each multiset in every post or page you want, limitless.

              You can create up to 99 multiset.

              Do you really need 99+ multisets?

  52. Hey!
    I like your app so far, I am trying to start a review site. Is it possible to have a page which lists the top rated places or products with a certain tag? For example I would like to have the top rated bars which i reviewed tagged with NYC, but not all the bars I rated. Do you understand what I mean?

    Thanks! great job!
    – Ivo