Hello @yordanandreev ??
The Twenty Twenty theme is using a slight different structure. To show the co-authors you can use the following code snippet:
add_filter( 'twentytwenty_post_meta_location_single_top', 'remove_author' );
function remove_author( $post_meta ) {
if ( function_exists( 'coauthors_posts_links' ) ) {
unset( $post_meta[0] );
}
return $post_meta;
}
add_action( 'twentytwenty_start_of_post_meta_list', 'add_co_authors', 10, 3 );
function add_co_authors( $post_id, $post_meta, $location ) {
if ( function_exists( 'coauthors_posts_links' ) ) {
?>
<li class="post-author meta-wrapper">
<span class="meta-icon">
<span class="screen-reader-text"><?php _e( 'Post author', 'twentytwenty' ); ?></span>
<?php twentytwenty_the_theme_svg( 'user' ); ?>
</span>
<span class="meta-text">
<?php
printf(
/* translators: %s: Author name. */
__( 'By %s', 'twentytwenty' ),
coauthors_posts_links( null, null, null, null, false )
);
?>
</span>
</li>
<?php
}
}