dckevin
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Zakra] Incorporate Co-Authors PlusHi @asheshmagar,
Thank you for your response. I tried updating the code in
inc/template-tags.php
but it doesn’t work.Here is the code that I implemented:
if ( function_exists( 'coauthors_posts_links' ) ) { $byline = coauthors_posts_links( null, null, null, null, false ); } else { $byline = sprintf( $author_text, '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>' ); }
Within –
if ( ! function_exists( 'zakra_posted_by' ) ) :
block. Can you please verify if this is the correct place to update.Thanks,
KevinForum: Themes and Templates
In reply to: [Zakra] Incorporate Co-Authors PlusHi @themegrillteam,
Sorry for not providing in detail explanation. I’m looking to incorporate “Co-Authors Plus” plugin – https://www.ads-software.com/plugins/co-authors-plus/. It basically allows to add multiple authors to a blog post.
I’ve already installed the plugin and I can add multiple authors to a blog post but secondary authors don’t show up in front-end. Based on the following guide – https://wpvip.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/, it mentions to integrate template tags within the theme files – https://wpvip.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/#integrating-template-tags-into-your-theme.
I’m not sure where exactly I can find the code block mentioned within the theme files. Can you please help me with this.
Thanks & Regards,
Kevin