query_vars['paged']; if (!$paged) $paged = 1; // get paginated links $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'prev_text' => __('Prev'), 'next_text' => __('Next'), 'total' => $wp_query->max_num_pages, 'current' => $paged, 'type' => 'array' )); if ( $page_links ) { echo '