Corretto errore nel posizionamento del codice

This commit is contained in:
ulaulaman 2021-10-22 02:26:55 +02:00
parent 9eecfb8ef4
commit 53dcdb01de
1 changed files with 5 additions and 5 deletions

View File

@ -25,14 +25,14 @@ function eduinaf_postrss( $content ) {
if ( function_exists( 'get_coauthors' ) ) {
$coauthors = coauthors_posts_links(", ", " e ", null, null, false);
} else {
$coauthors = get_author_posts_url( $coauthor->ID, $coauthor->user_nicename );
}
if( is_feed() ){
$url = get_the_author_meta( 'user_url' );
$url = get_the_author_meta( 'user_url' );
$name = get_the_author_meta( 'display_name' );
$coauthors = '<a href="'.$url.'">'.$name.'</a>';
}
if ( is_feed() ) {
$content = '<p>Questo articolo è stato scritto da '.$coauthors.'</p>'.$content.'<p>Leggi Edu INAF</p>';
}
return $content;
}