Support » Plugin: Site Reviews » does not load specific post reviews within a loop

  • Resolved raptor_00


    Hello, I have a loop, where I upload the reviews, but each post that is loaded shows the same general score, it does not load the specific score of each post. the script load is with ajax.

    <?php echo do_shortcode( "[site_reviews_summary assigned_to={$post->ID}]" );?>

    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


    First of all, please make sure you are using The Loop correctly:

    You can test this by using the glsr_debug() helper function in the loop to make sure that the post is being reset on each loop iteration. For example:

    // OR

    Finally, you don’t need to put the actual post ID in the shortcode, you can just write it like this:

    <?php echo do_shortcode('[site_reviews_summary assigned_to=post_id]'); ?>
    • This reply was modified 2 years, 8 months ago by Gemini Labs.
    Thread Starter raptor_00


    Thanks, it has been solved with your code.

    <?php echo do_shortcode('[site_reviews_summary assigned_to=post_id]'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘does not load specific post reviews within a loop’ is closed to new replies.