str_replace( $big, '%#%', get_pagenum_link($big) ), 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'mid_size' => 5, 'prev_next' => True, 'prev_text' => __(' Newer'), 'next_text' => __('Older '), 'type' => 'list' ) ); $paginate_links = str_replace( "
Pages: ', '
'), '', $wp_links)); // Get out of here ASAP if there is no paging. if ( empty($wp_links) ) return ''; // Split at spaces $splits = explode(' ', $wp_links ); $links = array(); $current_page = 1; // Since links are now split up such that $split ){ if( is_numeric($split) ) { $links[] = $split; $current_page = $split; } else if ( strpos($split, 'href') === false ) { $links[] = $split . ' ' . $splits[$key + 1]; } } $num_pages = count($links); // Output pagination $output = ''; // Page status $output .= 'Page ' . $current_page . ' of ' . $num_pages . '
'; // Start the pagination list $output .= '