Get next post when using pagination with WP_Query? October 18, 2022 by Tarik Billa before WP_Query() check page condition is_page(‘pade_id’) if true then execute the wp_query().