• Resolved Ale Maciel

    (@ale-maciel)


    Does this plugin have a way to display stars and/or average ratings anywhere I want in a post? And also in a post list? (each post with its star and/or rating)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Ale Maciel

    (@ale-maciel)

    Abandoned plugin?

    Plugin Support Mamunur Rashid

    (@mamunur105)

    Hello @ale-maciel,

    There is a way to achieve this using PHP code directly. You can utilize PHP to fetch the average ratings for each post and then display them wherever you want within your post content or post lists.

    Here’s an example code snippet you can use:

    use Rtrs\Helpers\Functions;
    use Rtrs\Models\Review;
    // Check if the class exists before using it
    if (class_exists('Rtrs\Models\Review') && class_exists('Rtrs\Helpers\Functions')) {
        // Replace $post_id with the ID of the post you want to display ratings for
        $post_id = get_the_ID();
        // Get the average ratings for the specified post
        $avg_rating = Review::getAvgRatings($post_id);
        echo Functions::review_stars($avg_rating);
    }
    Thread Starter Ale Maciel

    (@ale-maciel)

    Thank you very much for the support, Mamunur! It worked very well for me. But for some non-technical users, this might be a bit confusing. Please consider writing a shortcode in future updates.

    I’ve been researching for a while, and I strongly believe you have the best review plugin in the WordPress repository. It’s a pity not to be able to easily display reviews more easily.

    Anyway, thank you very much, and I’ll be purchasing the Pro version soon. See you later!

    I agree with what @ale-maciel is saying, the plugin is really great, but one of the most needed things in a review plugin is the possibility of showcasing stars anywhere.

    Could you please elaborate a bit more into how could you show the average stars of a post in a post archive?
    I’m using bricks builder.

    Thanks in advance.

    Plugin Support Mamunur Rashid

    (@mamunur105)

    Thank you for your feedback and for appreciating the plugin. We are currently developing a shortcode that will allow you to display star reviews. Please stay tuned, and we will let you know as soon as this feature is released.

    Thank you for your patience and understanding.

    Plugin Support Mamunur Rashid

    (@mamunur105)

    We are excited to announce that we have released a new version of the plugin which includes the shortcode feature for displaying star reviews.

    You can now use this new feature to easily showcase reviews on your website. If you have any questions or need assistance, please feel free to reach out.

    Documentation Link : https://www.radiustheme.com/docs/review-schema/generate-review-schema/review/

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