2

I have a Wordpress blog that has search functionality for authors, you can search an author name and that authors posts will come up.

I have editors of the blog, these people update the blog and manage all of the posts. However the posts that the editors are updating are not written by them, they are written by various other authors that have no need for accounts on my system. These authors do still need credit for there posts though.

This is where I am stuck, I basically want userless authors. This means they can appear as a user on the backend but they have no email linked to there user and no username or password just display name and first/last name. All that is needed to pull up search results for them when people search my blog filtering for authors.

I haven't found any plugin or resource that can solve this problem. I wouldn't mind building my own quick plugin to solve this problem but I don't really know where to start as all of the Wordpress user creation functions require some sort of login info.

Any help would be greatly appreciated!

  • Can you please explain the idea a little more? you can just create accounts for your authors but do not send them login info or email confirmation? I am missing somethin? thanks! – Ahmed Fouad Sep 27 '16 at 7:13
  • Depending on how many accounts you need to create, wouldn't it be easier to simply create the accounts one at a time in the WP-Admin? Just don't sent the usernames/passwords and put fake emails. If you have a ton to do, you can use wp_insert_user() to programatically create many at a time. – Brian Sep 29 '16 at 17:51
  • @Brian What you mentioned is what I currently do but I was just wondering if there was a more efficient way of doing it where you don't have to put in unused data (email, username, password). I was thinking that guest authors would be a pretty popular thing for Wordpress blogs. – Tyler Sep 30 '16 at 3:32
  • Why not create an "Authors" custom post type and then add a meta-box to your standard blog posts to choose from the list of (previously added) authors. – mistertaylor Dec 16 '16 at 16:54
1

In a plugin, you can create the users with whatever information you want them to have (First name, last name, etc). The only required user fields are username, email and password, which you can specify.

https://codex.wordpress.org/Function_Reference/wp_create_user

As Ahmed Mahdi stated above, you can create the users but not send them the login information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.