>
'; $term_links = array(); foreach ( $terms as $term ) { $link = get_term_link( $term ); if ( ! is_wp_error( $link ) ) { $term_links[] = sprintf( '%s', esc_url( $link ), esc_html( $term->name ) ); } } echo implode( ', ', $term_links ); echo '
'; ?>

max_num_pages; // Don't print empty markup if there's only one page. if ( $max >= 2 ) { echo get_the_posts_pagination( array( 'screen_reader_text' => ' ', 'before_page_number' => '', 'prev_text' => '', 'next_text' => '', ) ); } ?>