230 thoughts on “Tutorials

  • 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

  • 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?

    Best,
    –jon

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

  • 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?

    Thanks!
    Andy

    • 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!

      Best,
      Dario

      • 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.

        • 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:

            • 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?

              Thanks!
              Kat
              http://www.fantasyliterature.com/

            • 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’

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

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

              Best,
              Dario

  • 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.

          • 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”);
            return;
            }

            But this is not a good solution.

            My 5 licenses expire on July 15, 2016.

            thank you very much for your help.

  • 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.

    Regards,

    Ruud

    • 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

      Best,
      Dario

    • 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

      Best,
      Dario

        • This is the query used for the shortcode yasr_top_ten_highest_rated

            • 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
              Divya

            • 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

              Best,
              Dario

  • 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?

    Thanks

  • 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.

    Grazie
    Giorgio

    • 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!

  • 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.

    • 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!
      Dario

  • 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,
    Freddy

    • 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_

      Best,
      Dario

      • 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!

        Thanks,
        Freddy

  • 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.

  • 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?

    Grazie

  • 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?

    Thanks!

  • 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.

    Thanks.

    • Hello, thank you for using Yasr!

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

      Best,
      Dario

      • 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) 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.

          Greetings,
          Dario

  • 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-

    https://developers.google.com/structured-data/testing-tool?url=http%253A%252F%252Fpsychologymajorpsychology.com%252Fma-in-psychology%252F

    Any help would be appreciated.

    • 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.

      Best,
      Dario

      • 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.

        • 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.

          Best,
          Dario

  • 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?

    • 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!

  • 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.

          • 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?

            • 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.

            • 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.

              Best,
              Dario

            • 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.

  • 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.

    • 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

  • 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?

    cheers,
    MikeEcho

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

      Best,
      Dario

    • 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)

      • 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
        Jason

  • 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

    • 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!

      Best,
      Dario

    • Hi Matt, thank your for using Yasr!

      If you wish to inser it into a template use this

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

      Best,
      Dario

  • 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/

    • 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.

      Best,
      Dario

  • 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.

    • 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 πŸ˜‰

      Best,
      Dario

  • 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

    • 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.

      Best,
      Dario

      • 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)

        • 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 πŸ™‚

          Best,
          Dario

  • 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?

    • 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 πŸ™‚

      Best,
      Dario

      • 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.

  • 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

  • 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.

    • 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.

      Best,
      Dario

      • 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)

        Best,
        Dario

  • 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.

  • 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

  • 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Γ©

      • 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Γ©

        • 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,
          Dario

    • 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 πŸ™‚

  • 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.

    FEATURE REQUEST:

    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.

    • 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 πŸ™‚

      Best,
      Dario

  • 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,
    Aleksandr.
    http://www.echo.md

  • 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?

    Thanks!

  • 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?

        • 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

          Best,
          Dario

          • 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

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

  • 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.

    • 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?

      Best,
      Dario

      • 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’.

        • 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

          Best,
          Dario

  • 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.
    Thanks

        • 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?

            • 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:

              *Food
              *Service
              *Value
              *Atmosfere

              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?

  • 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

Leave a Reply

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