• Resolved notom

    (@notom)


    Hello,

    So, we have a shortcode [site_reviews assigned_to=post_id] in the page content.
    But we also want to have a site review summary in the main sidebar of the same page. So we used both the Widget and the do_shortcode(‘[site_reviews_summary assigned_to=post_id]’) methods to add the summary.
    The first shortcode (site_reviews) works just fine (as you can see in the link). But the shortcodes in the sidebar are shoing 0 reviews.

    Can you please help. What is wrong?

    Thank you!

    The page I need help with: [log in to see the link]

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

    (@geminilabs)

    Using “post_id” as the value will only work if the global $post_id is set (usually only in The Loop). If you are using the shortcode outside of The Loop, you may need to use the actual Post ID of the page instead.

    1. Try adding the summary shortcode in the same place as the reviews shortcode on your page. If that works, then the problem is that your sidebar is outside of The Loop.

    2. If it still does not work, please go to the Site Reviews > Tools page and hit the “recalculate counts” button.

    Thread Starter notom

    (@notom)

    Thank you for your response!

    A combination of global $post in the sidebar file and “Recalculate Summary Counts” action did the job for us. We are using [site_reviews_summary assigned_to=post_id] short code on both of the places.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Summary site review not working’ is closed to new replies.