Merge registration post with post insert
Author | Posts |
---|---|
July 24, 2013 at 10:22 pm 6289 | |
foriaa | Hello I need to have a form where the user can register and insert his post. If I create this 2 kinds of form after can I insert them together in a page? thank you |
July 25, 2013 at 1:13 am 6293 | |
Tareq Hasan | Inserting them together doesn’t help the user, it’ll be confusing I think. You can create a registration form and the redirect url should point to a page with post form. So upon registering, they will be redirected to a post page. |
July 25, 2013 at 5:15 pm 6312 | |
foriaa | In realty I saw with pleasure that in the post settings there is an option to submit a post by the guests, and is it possible to register them automatically by insert a name and an email address. Great it was what I need 😉 |
July 25, 2013 at 6:35 pm 6314 | |
foriaa | Ok but now I need to have the custom fields which populate extra edit profile fields in the user profiles in backend. |
July 26, 2013 at 2:03 am 6322 | |
Tareq Hasan | The registration form and profile forms are the same, but the use case is different. Thats why get two shortcode for a registration form (profile & register). Selecting the registration is fine 🙂 |
July 26, 2013 at 2:11 pm 6338 | |
foriaa | Sorry but maybe you don’t understand what I need. I hope your next replies will be more constructive then previous. Kind regards |
July 27, 2013 at 1:35 am 6359 | |
Tareq Hasan | I completely understand what you said. I just replied to your previous question. Anyway… if ( $custom ) { add_action( ‘wpuf_add_post_after_insert’, ‘wpufe_copy_post_meta_to_user’ ); It’s a PHP snippet that you can place it in your themes functions.php. What this does is, when a user publishes a post, it copies all the post meta to that user. So in your case, when the guest registers automatically upon creating the post, all the post meta will also be copied to his user profile (user meta). I think thats what you are trying to achieve? |
July 29, 2013 at 6:08 pm 6419 | |
foriaa | Thank you for your reply. However it doesn’t matter, I modified the frontend-form-post and render-form to get what I need. thank you very much |