str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'total' => $wp_query->max_num_pages, 'current' => max( 1, get_query_var('paged') ), 'show_all' => False, 'prev_next' => True, 'prev_text' => '', 'next_text' => '', 'before_page_number' => ''.$translated.' ' ); echo paginate_links( $args); } endif; if ( ! function_exists( 'biography_posts_navigation' ) ) : /** * Posts navigation options * * @since Biography 1.0.0 * * @param null * @return int */ function biography_posts_navigation() { global $biography_customizer_saved_options; $biography_pagination_options = $biography_customizer_saved_options['biography-pagination-options']; switch ( $biography_pagination_options ) { case 'default': the_posts_navigation(); break; case 'numeric': biography_numeric_posts_navigation(); break; default: break; } } endif; add_action( 'biography_action_posts_navigation', 'biography_posts_navigation' );