str_replace($large, '%#%', get_pagenum_link($large)), 'format' => '/page/%#%', 'current' => max(1, get_query_var('paged')), 'total' => $wp_query->max_num_pages, 'prev_text' => '«', 'next_text' => '»', 'type' => 'array' )); $output = ''; unset($large); if (is_array($pagination_array) && !empty($pagination_array)) { $output .= '