Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guest authors: main ticket #6

Closed
danielbachhuber opened this issue Jan 23, 2012 · 2 comments
Closed

Guest authors: main ticket #6

danielbachhuber opened this issue Jan 23, 2012 · 2 comments
Assignees
Milestone

Comments

@danielbachhuber
Copy link
Contributor

It would be great to be able to assign guest authors to a post without creating user accounts for them.

@danielbachhuber
Copy link
Contributor Author

I think Grist's bylines plugin would be a good basis for this functionality: https://gist.github.com/1666271

The requirements for assigning guest authors are:

  • Create a new guest author with some standard profile fields that doesn't also create a user object. The guest author object exists for the purpose of the byline, and for managing relationships between posts.
  • Assign a guest author to a post, either as the primary author or as a co-author
  • Guest authors are (optionally) handled on the front-end like normal WP authors (e.g. bylines show up, author names are linked when they should be, and authors have profile URLs listing all of their posts)

The alternative to storing this data as a custom post type is to continue to use Co-Authors Plus' author taxonomy (or create a guest author taxonomy). One upside is that we'd have less complex code (e.g. no methods for accessing posts and taxonomy terms side by site); one downside is that we'd be storing all of the profile data in the term's description field.

danielbachhuber added a commit that referenced this issue May 1, 2012
… bylines without creating WordPress users.

Very incomplete. This is what's known to work:
* Create a Co-Author with the fields (e.g. display_name, first_name, user_email, etc.) you'd expect of a normal WP user
* Assign a Co-Author to a post as the primary or secondary author
* See all posts by a Co-Author from the Manage Posts screen
* See all published posts by a Co-Author on the frontend

This is a short list from a very long list of what needs to be improved:
* Save more co-author data to the term description field
* ... so that AJAX search can search against more fields than the "Unique Slug"
* Not sure what happens if you change the "Unique Slug" for a Co-Author. Things probably break.
* Ability to associate a Co-Author with a WordPress user
* Allow for sexier unique slugs that aren't brittle with the 'cap-' prefix
* Properly update published posts count for Co-Authors
* Allow editing a co-author from the All Co-Authors view (and other improvement to that view)

See #6
@ghost ghost assigned danielbachhuber May 1, 2012
danielbachhuber added a commit that referenced this issue May 3, 2012
danielbachhuber added a commit that referenced this issue May 4, 2012
danielbachhuber added a commit that referenced this issue May 4, 2012
…ip between posts and guest authors.

Specifically:
* Search for co-authors based on term description instead of term name
* Store some amount of user and guest author details in the term description for searching purposes
* Trick the plugin into auto-populating author terms with descriptions if they don't exist or have descriptions
* Populate the term description field when creating a guest author from user, or updating a guest author

Slugs will be handled in a slightly different way, functionality tk.

See #6
danielbachhuber added a commit that referenced this issue May 5, 2012
…hors created from users are restricted to user_logins, and slugs for guest authors will be the display name from the first time the guest author is fully saved

See #6
danielbachhuber added a commit that referenced this issue May 9, 2012
…a user to override the user object when queried with get_coauthor_by(). This means that every post with the original user as a coauthor will display the guest author profile information.

See #6
danielbachhuber added a commit that referenced this issue May 9, 2012
…se that's where it's most likely to be used.

See #6
@danielbachhuber
Copy link
Contributor Author

Closing this ticket, no longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant