Title: Primary author issue
Last modified: August 20, 2016

---

# Primary author issue

 *  Resolved [Bjorn Holine](https://wordpress.org/support/users/bjorn2404/)
 * (@bjorn2404)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/)
 * I’m having an issue that relates to the primary author of a custom post type.
   I’m creating a new post, finding the author that should be assigned, removing
   my name (that’s automatically added) but the primary author is still set to my
   account after I publish. If I use the_author() or the_author_meta() the data 
   that’s returned is my account even though I’ve removed it. If I use the coauthors()
   function it displays the correct author but I need to pull in some other information
   based on the author ID and there will only be 1 author for this custom post type.
 * [http://wordpress.org/extend/plugins/co-authors-plus/](http://wordpress.org/extend/plugins/co-authors-plus/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/primary-author-issue/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/primary-author-issue/page/2/?output_format=md)

 *  [crowinck](https://wordpress.org/support/users/crowinck/)
 * (@crowinck)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256820)
 * I am having the same issue, not only with custom post types but also regular 
   posts. I believe it started when I last updated the plugin. I’m going to have
   to roll back to an older version until this issue is fixed.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256821)
 * I don’t recommend rolling back, and won’t be able to support that. In order to
   use Co-Authors Plus fully, you’ll need to use [our template tags](http://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/).
 * Using get_coauthors() gives you all of the information that’s available in the
   standard WP User object.
 *  [crowinck](https://wordpress.org/support/users/crowinck/)
 * (@crowinck)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256828)
 * It’s unrealistic to expect every other plugin we are using to use your special
   functions rather than the WordPress ones. Other plugins and features that aren’t
   hooked into your plugin should be able to fall back on working with the main 
   author. By preventing users from changing who is the main author for everything
   other than your plugin, you’re not playing nice with everyone else.
 * No one ever recommends rolling back, but it’s not any better to hack my other
   plugins to use your functions.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256829)
 * > It’s unrealistic to expect every other plugin we are using to use your special
   > functions rather than the WordPress ones.
 * Sorry for the confusion. The point of Co-Authors Plus is to allow you to assign
   multiple bylines to an article. **WordPress doesn’t have native support for multiple
   bylines** — thus the requirement of adding the template tags.
 * If you want it to work well with other plugins, you or the plugin author will
   need to add support for Co-Authors Plus. There’s not much I can do because, again,
   core WordPress doesn’t support multiple bylines. There’s no standard paradigm
   to follow.
 * Often, the easiest thing to do (as I have done with my other plugins) is to add
   a filter to the plugin in question where you can modify the output of the post
   author. Then, in your theme or an mu plugin, you can filter that output to return
   Co-Authors Plus instead.
 * Co-Authors Plus does store the first author on any post type as ‘post_author’
   so at least the first byline should persist if the plugin is deactivated.
 * Hope this helps clarify.
 *  [crowinck](https://wordpress.org/support/users/crowinck/)
 * (@crowinck)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256830)
 * Thanks for the clarification. Let me also clarify.
 * What we’re saying is that on our sites, the storing of the first author as the
   WP ‘post_author’ is no longer working.
 * If user A creates a blog post, and then tries to change the first author to user
   B, (so user A’s name is no longer associated with the post in any way), all of
   the WordPress functions will still bring up user A, not user B.
 * We don’t expect the WP functions to bring up multiple authors, we just need them
   to bring up the right first author.
 * I thought you were saying this was intentional. It sounds like you just misunderstood
   us.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256832)
 * > If user A creates a blog post, and then tries to change the first author to
   > user B, (so user A’s name is no longer associated with the post in any way),
   > all of the WordPress functions will still bring up user A, not user B.
 * Odd. I have a hunch why that may be the case though. Do your users have different
   user_logins than user_nicenames?
 *  [crowinck](https://wordpress.org/support/users/crowinck/)
 * (@crowinck)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256833)
 * It looks like all the usernames in question have spaces, so yes, I believe they
   would. (I haven’t actually looked in the database or anything, let me know if
   you need me to confirm). The site is also a multisite install, in case that makes
   a difference.
 * This problem started with Co-Authors Plus 3.0.
 * Thanks for looking at it!
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256834)
 * Ah, it’s [probably this issue](https://github.com/Automattic/Co-Authors-Plus/pull/90).
   I’ll try to test and merge to the development version tomorrow (which you can
   use until there’s a new release out.
 *  Thread Starter [Bjorn Holine](https://wordpress.org/support/users/bjorn2404/)
 * (@bjorn2404)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256835)
 * Yep, same situation with usernames and nicenames for me.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256847)
 * Can you guys try [installing the development version](https://github.com/Automattic/co-authors-plus)
   to see if that fixes it for you?
 *  [crowinck](https://wordpress.org/support/users/crowinck/)
 * (@crowinck)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256848)
 * Sorry, the bug is still there.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256849)
 * I’m having a heck of a time trying to reproduce this with the dev version of 
   the plugin.
 * Here’s what I’m doing:
    1. Created a new user with user_login “Daniel Bachhuber” and user_nicename “daniel-
       bachhuber”
    2. Created a new “Event” post and assigned my normal “daniel” user to the post.
       The post_author value in the database is 1
    3. Assigned the “Event” post to my new user with user_login “Daniel Bachhuber”.
       The post_author value in the database changed to 8
 * Can you give me steps to take to reproduce reliably?
 *  [psbook](https://wordpress.org/support/users/psbook/)
 * (@psbook)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256850)
 * This seems to be working for us again now. Thanks, Daniel.
 *  Thread Starter [Bjorn Holine](https://wordpress.org/support/users/bjorn2404/)
 * (@bjorn2404)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256851)
 * The development version seems to have fixed the issue for me too. Thanks
 *  [crowinck](https://wordpress.org/support/users/crowinck/)
 * (@crowinck)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/#post-3256852)
 * Since it was working for other people I tried it again, in case I made a mistake
   and uploaded the wrong files or something. It’s also working for me now.
 * Sorry for the mistake, thanks a lot for following up and fixing this.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/primary-author-issue/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/primary-author-issue/page/2/?output_format=md)

The topic ‘Primary author issue’ is closed to new replies.

 * ![](https://ps.w.org/co-authors-plus/assets/icon-256x256.png?rev=2945095)
 * [Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/co-authors-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/co-authors-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/co-authors-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/co-authors-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/co-authors-plus/reviews/)

## Tags

 * [the_author_meta](https://wordpress.org/support/topic-tag/the_author_meta/)

 * 17 replies
 * 4 participants
 * Last reply from: [crowinck](https://wordpress.org/support/users/crowinck/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/primary-author-issue/page/2/#post-3256854)
 * Status: resolved