Shortcode / WP_Query in post changes context August 19, 2022 by Tarik Billa You need to call wp_reset_postdata() after a secondary query to restore the global $post to its original context.