</span> </div> <?php } ?> </div> </div><?php } ?> </div><?php if ($the_query->max_num_pages > 1) { ?> <div class="pagination"> <?php if (function_exists("dt_theme_pagination")) { echo dt_theme_pagination("", $the_query->max_num_pages, $the_query); } ?> </div><?php } wp_reset_postdata(); } else { ?> <h2><?php _e('Nothing Found.', 'iamd_text_domain'); ?> </h2> <p><?php _e('Apologies, but no results were found for the requested archive.', 'iamd_text_domain'); ?> </p><?php
function dt_woocommerce_after_shop_loop() { global $wp_query; if ($wp_query->max_num_pages > 1) { ?> <div class="pagination"> <?php if (function_exists("dt_theme_pagination")) { echo dt_theme_pagination("", $wp_query->max_num_pages, $wp_query); } ?> </div><?php } }