echo '<div class="post-taxonomies">';
$categories_list =
get_the_category_list( wp_get_list_item_separator() );
if ( $categories_list ) { printf( /* translators: %s: List of categories. */
'<span class="cat-links">' .
esc_html__( 'Categorized as %s', 'twentytwentyone'
) . ' </span>',
$categories_list // phpcs:ignore WordPress.Security.EscapeOutput
);
} $tags_list =
get_the_tag_list( '',
wp_get_list_item_separator() );
if ( $tags_list ) { printf( /* translators: %s: List of tags. */
'<span class="tags-links">' .
esc_html__( 'Tagged %s', 'twentytwentyone'
) . '</span>',
$tags_list // phpcs:ignore WordPress.Security.EscapeOutput
);
} echo '</div>';
} } else {