Support » Plugin: Site Reviews » site_reviews shortcode not working

  • Resolved White Rabbit

    (@wrconsultancy)


    I am having some trouble getting the site_reviews shortcode to display reviews. The summary shortcode works fine, shows all reviews for post_id and I can customise it. But on the same page the reviews shortcode just displays the fallback text, claiming their are no reviews.

    This is working fine:
    [site_reviews_summary assigned_to=”post_id” hide=”bars,if_empty,rating” text=”{rating}/5 based on {num} reviews”]

    This shows no reviews just fallback text:
    [site_reviews assigned_to=”post_id” count=”6″ hide=”assigned_to,author,avatar,date,response”]

    I have recalculated the reviews, I have the latest version of the plugin and as I say above the summary shortcode works fine on the same page/post.

    Can you advise on where I might be going wrong here?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Are you using the shortcodes in the WordPress editor, or are you using the do_shortcode function in your theme template?

    in order for assigned_to=post_id to work, the shortcode must be used in the WordPress loop as it uses the global $post variable.

    Please try entering the actual WordPress post ID instead of “post_id”.

    For example, instead of this:

    [site_reviews_summary assigned_to=post_id]
    [site_reviews assigned_to=post_id]

    Do this (where 123 is the WordPress post ID):

    [site_reviews_summary assigned_to=123]
    [site_reviews assigned_to=123]

    Let me know the result.

    Thread Starter White Rabbit

    (@wrconsultancy)

    Yes I am using the shortcodes in the editor. I have tried your suggestion but still the same problem

    This works:
    [site_reviews_summary assigned_to=post_id]
    [site_reviews_summary assigned_to=123]

    This does not work:
    [site_reviews assigned_to=post_id]
    [site_reviews assigned_to=123]

    Plugin Author Gemini Labs

    (@geminilabs)

    @wrconsultancy Please go to the Site Reviews Documentation page and follow the instructions in the “Contact Support” section to contact me directly so I can help you solve this.

    Thanks.

    Thread Starter White Rabbit

    (@wrconsultancy)

    Thanks for your help with fixing this.

    For reference and any others facing the same problem or similar, “the reviews are assigned to both a category and a page. There is a known bug with v3.5.* that will prevent rating counts from being calculated correctly when this is the case. Version 3.6.0 fixes this and will be released in a couple of weeks.”

    Looking forward to V3.6.0 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘site_reviews shortcode not working’ is closed to new replies.