'post','paged'=>$pagedno); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) : // Start the Loop. while ( $loop->have_posts() ) : $loop->the_post(); // Include the post format-specific template for the content. include(INNOFITP_PLUGIN_DIR.'/inc/functions/template-parts/content.php'); endwhile; // pagination function $obj = new innofit_pagination(); $obj->innofit_page($loop); endif; }else{ echo do_shortcode('[ajax_posts]'); } }?>