have_posts() ) { global $post; $wpaf_coupon_code->the_post(); do_action( 'wpaf_shortcode_code_show' ); } //End while /** * Restore original Post Data * Resetting the loop. * * @since 1.0 */ wp_reset_postdata();