L.S.,
I have a problem with assigning users to a post captured via a Gravity form. The glitch is I want this to work for users that have already submitted a post and are registered at the first submit. I DO NOT want them to login.
Some background:
I'm building an internal corporate platform meant for capturing posts. To capture the posts, I'm using Gravity + UserReg add-on. I want to keep the threshold for submitting a post as low as possible, so I'm simply using a form that allows user to add a post without the hassle of registering. This is done automatically via the form without them ever knowing or receiving a password. Even more, I don't want my users to ever see -let alone login to- the WP backend.
The glitch is users can add multiple posts. There's basically two entry conditions:
(1) A user has never submitted an post before. Based on a condition ("have you submitted a post before? > no") the user form is set to register the user.
(2) The user submitted a post before. Based on the same condition, the user registration is skipped.
The problem here is that in the second condition the post/post isn't assigned to the user. This is absolutely essential for the platform to work. When I remove the condition, users simply get an error message when they submit a second post because they've already been registered at the first submit (which they won't understand).
Is it possible to assign a post to an existing user with Gravity (based on matching e-mails)? I haven't found the option. I've tried to write a plugin that uses WP's set_as_author() (take the user email, assign the post to this user), but I'm simply not skilled enough to make this work.
Therefore:
(1) Am I missing something and IS it possible to assign a post to a user that already exists with Gravity in a form (based on matching emailadress provided) OR is there another way to accomplish this with Gravity?
(2) Is this a planned development?
Hope you can help!