• Hello,

    Thanks for a great plugin. I’m a developer, and we found when placing a shortcode inside a standard page, it will clear all our data (which is below a shortcode).

    When checking your code, I found:

    shortcode/shortcode.php

    while ($query->have_posts()) : $query->the_post(); // line 11
    endwhile; // line 193

    You missed wp_reset_postdata(); after executing this loop.

    Please fix to ensure it could help other guys solve that.

The topic ‘Missing reset post data after a loop’ is closed to new replies.