Skip Navigation

[Resolved] How to attribute content to a user who has created it while not logged ?

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like for Guests to be able to create content on my site. Once the content is approved, then I would like for the guest to register as a User. At that point, I would like for the new User to be listed as the author of the post created earlier by the guest User.

Solution: You could ask guests to fill in their email address when they submit content, but there's no guarantee that this will match up with the email address they use when they sign up or register. Then when they do register later, even if they use the same email address, there's not an automated way to retroactively assign them as author to the content they created. It sounds like automating this full process would require a significant amount of custom code. You'll need some way to associate guest authors with future users, and to automate the retroactive author assignment somehow.

Otherwise the workflow will be fairly manual, because some Editor or Admin user will be required to manually go in and change the author of the posts created by Guests after the Guest signs up and becomes a User. If the email address provided earlier matches with the User's email address, it will be easy to do this from wp-admin. If it does not match, it will take some additional work to contact new Users and determine which should be the author.

Relevant Documentation: https://toolset.com/documentation/user-guides/access-control-for-cred-forms/

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by fredr 7 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#575199

Tell us what you are trying to do?

I've been following the ad website tutorial, and I need to implement something similar in its logic.

My client would like to allow visitors to fill a form to create a content, and only after the content is validated, the person would be asked to subscribe to the site and setup their user profile.

Is there a way to attach the content created in the first place to the users personal dashboard that I will create ?
I was thinking that, if I asked only the email address in the content creation form, I could maybe compare this email with the user email ? Is that doable ?
Thanks in advance for any help or indication.

#575216

My client would like to allow visitors to fill a form to create a content, and only after the content is validated, the person would be asked to subscribe to the site and setup their user profile.
You could ask guests to fill in their email address when they submit content, but there's no guarantee that this will match up with the email address they use when they sign up or register. Then when they do register later, even if they use the same email address, there's not an automated way to retroactively assign them as author to the content they created. It sounds like automating this full process would require a significant amount of custom code. You'll need some way to associate guest authors with future users, and to automate the retroactive author assignment somehow.

Otherwise the workflow will be fairly manual, because some Editor or Admin user will be required to manually go in and change the author of the posts created by Guests after the Guest signs up and becomes a User. If the email address provided earlier matches with the User's email address, it will be easy to do this from wp-admin. If it does not match, it will take some additional work to contact new Users and determine which should be the author.

Here's a quick overview of Access and CRED:
https://toolset.com/documentation/user-guides/access-control-for-cred-forms/

#576348

Thanks for the answer. I will try to convince my client that registration first is the way to go.