Forum Replies Created
-
AuthorPosts
-
estevaosoares
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;estevaosoares
MemberI reinstalled both Co Author Plus and Genesis Co Author Plus and it's working like a charm.
Thanks
estevaosoares
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?estevaosoares
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
-
AuthorPosts