• Resolved lafargue

    (@lafargue)


    Hello! we’r trying to incorporate Co-Authors Plus in our child theme of neve, but haven’t been able to add the function that replaces the query of the authors name’s in functions.php, so we have to change it in Neve every time we update the theme.
    Neve/inc/views/partials/post-meta.php
    Line 48

    case 'author':
    	$author_email   = get_the_coauthor_meta( 'user_email' );
    	//$avatar_url     = get_avatar_url( $author_email );
    	//$avatar_markup  = '<img class="photo" alt="' . get_the_author() . '" src="' . esc_url( $avatar_url ) . '" />&nbsp;';
    	$display_avatar = apply_filters( 'neve_display_author_avatar', true );
    
    	$markup .= '<li class="meta author vcard">';
    	//if ( $display_avatar ) {$markup .= $avatar_markup;}
    	$markup .= '<span class="author-name fn">' . wp_kses_post( coauthors_posts_links( $between = null, $betweenLast = null, $before = null, $after = null, $echo = false ) ) . '</span>';
    	$markup .= '</li>';
    	break;

    How and where should I add this code in my child theme?

    Thanks a lot!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Co-authors plus integration’ is closed to new replies.