Community Forums › Forums › Archived Forums › Design Tips and Tricks › NO Sidebar Co Author
Tagged: co-authors plus
- This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by
estevaosoares.
-
AuthorPosts
-
February 4, 2016 at 9:40 pm #178351
estevaosoares
MemberHi,
How can I show 2 Author (Co Author)
I tried Co Author Plus without success.Could you help me?
February 4, 2016 at 10:02 pm #178352Brad Dalton
ParticipantFebruary 5, 2016 at 6:07 am #178373estevaosoares
MemberThis is a lit bit confusing to me.
Is it the same thing as Twenty theme?I tried to paste this in my functions.php
function coauthors( $between = null, $betweenLast = null, $before = null, $after = null, $echo = true ){
return coauthors__echo('display_name', 'field', array(
'between' => $between,
'betweenLast' => $betweenLast,
'before' => $before,
'after' => $after
), null, $echo );
}no luck
February 5, 2016 at 6:10 am #178375Brad Dalton
ParticipantThat code won't work. Try this http://www.billerickson.net/wordpress-post-multiple-authors/
February 5, 2016 at 9:18 pm #178420estevaosoares
MemberDoes not work for me either.
Is there a step prior to all this?
I'm unable to select 2 users as Authors inside my post. Shouldn't I be able to do that?February 5, 2016 at 9:26 pm #178422estevaosoares
MemberI reinstalled both Co Author Plus and Genesis Co Author Plus and it's working like a charm.
Thanks
February 6, 2016 at 12:54 am #178449Brad Dalton
ParticipantFebruary 11, 2016 at 1:19 pm #178379estevaosoares
MemberI still don't understand how to implement this on genesis.
This link leads me to an example with Twenty, but how to implement this on Genesis?if ( ! function_exists( 'twentyten_posted_on' ) ) :
/**
* Integrate Co-Authors Plus with TwentyTen by replacing twentyten_posted_on() with this function
*/
function twentyten_posted_on() {
if ( function_exists( 'coauthors_posts_links' ) ) :
printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '<span class="entry-date">%3$s</span>',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
coauthors_posts_links( null, null, null, null, false )
);
else:
printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '<span class="entry-date">%3$s</span>',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '<span class="author vcard">%3$s</span>',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
get_the_author()
)
);
endif;
}
endif; -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.