Posts', 'twentytwenty' ); /* * Translators: This text contains HTML to allow the text to be shorter on small screens. * The text inside the span with the class nav-short will be hidden on small screens. */ $old_posts_text = __( 'Older Posts', 'twentytwenty' ); $prev_text = sprintf( '%s %s', '', ( 'DESC' === $order ) ? $new_posts_text : $old_posts_text ); $next_text = sprintf( '%s %s', ( 'DESC' === $order ) ? $old_posts_text : $new_posts_text, '' ); $posts_pagination = get_the_posts_pagination( array( 'mid_size' => 1, 'prev_text' => $prev_text, 'next_text' => $next_text, ) ); // If we're not outputting the previous page link, prepend a placeholder with `visibility: hidden` to take its place. if ( false === strpos( $posts_pagination, 'prev page-numbers' ) ) { $posts_pagination = str_replace( '', $posts_pagination ); } if ( $posts_pagination ) { ?>