[MB Frontend Submission] How to edit post in the frontend?

Support MB Frontend Submission [MB Frontend Submission] How to edit post in the frontend?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5812
    pattepatte
    Participant

    Hi,
    sorry, there was no topic for the MB Frontend Submission, so I write to General 🙂

    So, everything with this plugin works like a charm – thank you!

    But there is one thing I don't get. I want to let my wordpress user create and EDIT their created posts. Creating works perfect, but I don't know how to setup the editing modus.

    I know, when I give the shortcode the attribute "post_id" it works. But I think there must be a better solution 🙂

    Thanks and sorry for bad english
    Christoph

    #5839
    Anh TranAnh Tran
    Keymaster

    Do you mean after submitting the new post, show that post for user to keep editing?

    In that case, I'd suggest you create a new shortcode, paste it into new page and redirect it. Here is the code I'm thinking about:

    add_action( 'rwmb_frontend_after_save_post', 'prefix_redirect' );
    function prefix_redirect() {
        wp_safe_redirect( home_url( '/page-2/' ) );
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘[MB Frontend Submission] How to edit post in the frontend?’ is closed to new replies.