How to redirect to the editing mode after adding a post

Support MB Frontend Submission How to redirect to the editing mode after adding a postResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14162
    EddyPiVEddyPiV
    Participant

    Hi,

    Currently, after adding a post the success message is shown, together with a new empty form.
    What I want is that after adding the post, the same post is shown in edit mode in the frontend. I have a separate edit page (/edit-profile/).
    From the documentation I understand that I should use the hook rwmb_frontend_after_process.
    How do I adapt the hook to redirect to the edit page?
    And, I need to add the php code of the hook to the theme's functions.php file, right?

    Can you help me with the correct php code?

    #14183
    Anh TranAnh Tran
    Keymaster

    Hi, all you need is just adding edit=true to the shortcode. The edit option is added in version 1.5.0.

    #14184
    EddyPiVEddyPiV
    Participant

    So simple... Excellent! Thanks a lot.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.