Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Fahid Javid

    (@fahidjavid)

    Hi!

    You can place the [stars_rating_avg] shortcode anywhere in your post contents to display the average rating.

    However, if you want to show it on a custom place via code, then you can place the code something like this:

    <?php echo do_shortcode('[stars_rating_avg]'); ?>

    Let me know if you would need any further help in this regard.

    Thanks,

    Fahid

    Thread Starter livefootballontv1983

    (@livefootballontv1983)

    Hi

    Where do I place this script so that the average rating of each post will show near the post titles on the homepage and archive pages?

    Thread Starter livefootballontv1983

    (@livefootballontv1983)

    It’s okay, I have done it. Thanks.

    Plugin Author Fahid Javid

    (@fahidjavid)

    Good to know ??

    Hi, Im using Elementor Astra and have a Gallery with a photo and title of a location which is then linked to another page that has further details where comments can be left and your star rating selected. Can this average star rating be put on the first page where the gallery is next to the title or can it only be duplicated on the same page that contains the comments form. Hope that makes sense. Thanks for your help

    Plugin Author Fahid Javid

    (@fahidjavid)

    Hi,

    Yes, the average rating can be displayed easily on the gallery listing page near the title. For that, you would need to place the following shortcode.

    <?php echo do_shortcode('[stars_rating_avg]'); ?>

    Let me know if you would need further assistance in this regard.

    Hi Fahid, Thanks for the reply but where do i need to place the shortcode? Placing it in the Elementor Shortcode or HTML widget doesnt work and where I would ideally like to place it in the gallery item description box this doesnt do anything either. Does this shortcode then need to be added by editing the page file directly and not via wordpress / elementor? also as there isnt a unique identifier in the shortcode then how can i use this to display lots of different average star ratings for different locations that appear in the gallery page.

    Thanks for your help

    Chris

    Plugin Author Fahid Javid

    (@fahidjavid)

    Hi Chris,

    You would need to add it on the posts listing building page for the loop via Elementor or code.

    The short-codes automatically fetch the current post ID and retrieve the average rating to display.

    Can you share your website page URL where you want to display the average ratings? So that I can guide you accordingly.

    Thanks,

    Fahid

    cmosj

    (@cmosj)

    Hi Fahid

    The site is currently only in staging whilst i build it. but i have taken a screenshot of where im trying to add the average star rating. Do you have an email address I can send it to so you can see what im trying to acheive.

    Thanks

    Chris

    • This reply was modified 8 months ago by cmosj.
    Plugin Author Fahid Javid

    (@fahidjavid)

    Hi Chris,

    Yes, you can email me the details at fahidjavid[at]gmail[dot]com

    Thanks,

    Fahid

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Average star ratings to show near post titles’ is closed to new replies.