WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Co-Authors Author Profile Mix Up (12 posts)

  1. jjgleim
    Member
    Posted 1 year ago #

    I used your plugin to add another author to one of my posts and coincidentally, he had never created a post before that moment. Since then, when you click on the other author's name in the meta of his other posts to view his Author page, it shows his name but the profile bio and picture are mine.

    Any ideas?

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Did you create a guest author profile for him? If so, you'll need to update your theme to use the Co-Authors Plus template tags.

  3. jjgleim
    Member
    Posted 1 year ago #

    No. He is setup as an editor.

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Odd. Can you share the code you're using to produce the details on the author page?

  5. jjgleim
    Member
    Posted 1 year ago #

    I have the plugin turned back on so you can take a look. http://icatsbeta.com/code/author/joncarl/ You'll notice the different names. I'm using Social Author Bio plugin to display author info at the bottom of each post. On a page that we both co-authored, it will only show one author. http://icatsbeta.com/code/historic-walking-tour-of-franklin-street/ is an example.

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    You'll notice the different names.

    Hmm... I actually only see posts authored by Jon Carl on his author profile page. With how Co-Authors Plus works though, any articles where he is a co-author will also show up on his profile page. You'll need to add the template tags for both bylines to appear.

    I'm using Social Author Bio plugin to display author info at the bottom of each post. On a page that we both co-authored, it will only show one author.

    It probably doesn't support Co-Authors Plus.

  7. jjgleim
    Member
    Posted 1 year ago #

    I ditched the Social Author Bio plugin and instead went with Author Spotlight widget. BTW - SAB wasn't causing the issue so I need the template tags.

    Is there a way to inject the template tags using add_filter into my Pagelines template functions.php? I tried just adding the code to my functions.php and it crashed the site. I'm slowly learning php and any assistance you can give is greatly appreciated.

  8. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Is there a way to inject the template tags using add_filter into my Pagelines template functions.php?

    I'm not terribly familiar with Pagelines, sorry :( If you're using the paid version I'd recommend contacting their support.

  9. jjgleim
    Member
    Posted 1 year ago #

    Will do. Thanks!

  10. jjgleim
    Member
    Posted 1 year ago #

    Pagelines has built-in to their framework the ability to list multiple authors in the meta of posts using Co-Authors Plus. For some reason, there is an issue on the Author pages for any secondary authors' bios and profile pic being replaced with that of the primary author. What's ironic is the link to the website beneath the bio is Jon's and not the other guy's website. Could their be a slug conflict or something?

    Page that has 3 authors listed - http://icatsbeta.com/code/historic-walking-tour-of-franklin-street/
    Jerrad Gleim's Author Page - http://icatsbeta.com/code/author/jjgleim/
    Jon Carl's Author Page - http://icatsbeta.com/code/author/joncarl/
    Amanda Bussey's Author Page - http://icatsbeta.com/code/author/amandabussey/

    When you look at the post, you will see it list all authors in the meta and the authors bios are listed correctly at the bottom using the Author Spotlight Widget plugin. But when you go to the second and third author's author page, the bios and pics are wrong.

  11. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    I think I know what the problem is if it's using this code. Co-Authors Plus properly sets the queried object for the author profile page, but some of the Pagelines code is referring to $post->post_author. Any references to that should instead be get_queried_object_id()

    If you want to point their support staff to this thread, I'd be happy to help with any questions they have.

  12. jjgleim
    Member
    Posted 1 year ago #

    That fixed it! Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic