max_num_pages <= 1 ) { return; } $args = wp_parse_args( $args, array( 'mid_size' => 2, 'prev_next' => true, 'prev_text' => __( '«', 'understrap' ), 'next_text' => __( '»', 'understrap' ), 'screen_reader_text' => __( 'Posts navigation', 'understrap' ), 'type' => 'array', 'current' => max( 1, get_query_var( 'paged' ) ), ) ); $links = paginate_links( $args ); if ( ! $links ) { return; } ?>