Support » Plugin: Co-Authors Plus » Displaying meta data from user profile page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    Have you tried writing a loop and generating your own byline output?

    Alternatively, you should be able to filter ‘coauthors_posts_link’ to add the Twitter username. Here’s some untested pseudo-code:

    add_filter( 'coauthors_posts_link', 'capx_filter_coauthors_posts_link', 10, 2 );
    function capx_filter_coauthors_posts_link( $args, $author ) {
    
    	$twitter = get_user_meta( $author->ID, 'twitter', true );
    	if ( $twitter )
    		$args['text'] .= '@' . $twitter;
    
    	return $args;
    }

    This worked like a champ. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying meta data from user profile page’ is closed to new replies.