< ?php while($custom_query->have_posts()) : $custom_query->the_post(); ?> < ?php endwhile; ?> < ?php if (function_exists("pagination")) { pagination($custom_query->max_num_pages); } ?>