[Plugin: Co-Authors Plus] Double Authors
-
I’m having a problem that seems to have been articulated here before but never quite resolved.
We’re using Automattic’s Toolbox as a baseline theme. It has a function in functions.php that renders the date and author line:
function toolbox_posted_on() { printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'toolbox' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( esc_attr__( 'View all posts by %s', 'toolbox' ), get_the_author() ), esc_html( get_the_author() ) ); }(also at http://pastecode.com/bU)
Any variation that
subs in coauthors_posts_links()(eg. http://pastecode.com/bV) results in the authors and links appearing twice, once before the line altogether and once after “by ” as expected.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Co-Authors Plus] Double Authors’ is closed to new replies.