<
No Thanks ×

Steps to Add Multiple Authors while Avoiding Duplicate Content

As we developed our EveryMundo blog, we encountered two issues: how to give credit where credit is due, and how to avoid duplicate content for SEO purposes. Once we installed our WordPress theme, we found out that it did not support multiple authors; it only allowed one author for each post. We tend to work collaboratively on most projects here, including our blog posts–this particular article being an ironic exception.

Seeking to resolve this issue, our first attempt at crediting all collaborating authors was to include their bios in the body of the post under a subheading, “About the Authors”. However, when a past author posted again, they generated duplicate content just by adding their bio.

The answer, we thought, was a plugin. However, upon installing the Co-Authors Plus plugin, we found that it was incompatible with our WordPress theme (Logger). Determined to solve this SEO problem, we developed a function to avoid duplicate content with multiple authors. Here are the steps we followed:

  1. Install – Co-authors Plus plugin
  2. Add this code to the bottom of functions.php :
    function be_post_authors_post_link_shortcode( $atts ) {
        $atts = shortcode_atts( array(
          'between'      => null,
          'between_last' => null,
          'before'       => null,
          'after'        => null
        ), $atts );
        $authors = function_exists( 'coauthors_posts_links' ) ? coauthors_posts_links( $atts['between'], $atts['between_last'], $atts['before'], $atts['after'], false ) :     $atts['before'] . get_author_posts_url() . $atts['after'];
    
        return $authors;
    }
    
    add_shortcode( 'post_authors_post_link', 'be_post_authors_post_link_shortcode' );
    
  3. Add this shortcode anywhere on your post, which will render the authors names separated by an ‘and’. Every name should link to the corresponding author biography page: 
    [post_authors_post_link]
  4. Under the article post, find the Authors box, which is part of the Co-authors Plus plugin, and add all authors that are involved with this article.author-post
  5. Under Users, add any authors and give them the role of author, with the corresponding biography summary and photo of the author. Note: This is needed for the author to show up in the Co-authors Plus plugin.
  6. To show authors and their bios in the sidebar, install this widget: Author Spotlight (Widget), and include it in the sidebar widget area.

Find an example of one of our articles using this multiple authors function here.

This solution should work for just about any WordPress theme. If anyone encounters issues with their particular theme and the methods portrayed above, please leave us a comment below.

By: [post_authors_post_link]


Thoughts? Add a Comment

Protected with IP Blacklist CloudIP Blacklist Cloud

Comments

  • November 10, 2016 at 2:11 am

    You could certainly see your skills in the article you write.
    The arena hopes for more passionate writers like you who aren’t
    afraid to say how they believe. All the time go after your heart.

  • November 19, 2016 at 4:21 pm

    Not just be a shirt, it is your stylist. It is your love with your dogs. Buy this T-shirt to wear and show yourself now!
    Click here:

    http://bit.ly/Dogs-Tshirt

    Thx

  • November 20, 2016 at 7:28 am

    naturally ⅼike yohr website howeer yoou һave
    tto tewst tҺe spelling on sᥱveral of your posts.
    A numƅer of them aree rife ԝith spelling issues and I fіnd it vety bothersome to tell
    thee truth oon tһe other hand I’ll сertainly ϲome baϲk aɡаin.

  • November 23, 2016 at 8:30 am

    I intended to create you a little observation just to say thank you as before with the lovely techniques you’ve shown on this page. It was so surprisingly open-handed of people like you giving openly precisely what many of us might have sold as an electronic book to get some cash on their own, and in particular since you could possibly have tried it if you ever desired. These tactics as well worked to be the fantastic way to be aware that many people have the identical passion just like mine to grasp a lot more with regard to this matter. I know there are millions of more enjoyable situations ahead for individuals who see your blog post.

  • December 31, 2016 at 6:01 am

    For most recent news you have to pay a quick visit world-wide-web and on world-wide-web I found
    this web page as a finest web page for newest updates.

%d bloggers like this: