Edit post forms on the post archive pages

Support MB Frontend Submission Edit post forms on the post archive pagesResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34159
    Nicholas CoxNicholas Cox
    Participant

    Hi

    I was wondering is there a way to load an 'edit post form' using the metabox shortcode only upon user interaction on the post archive pages. So the current user can edit their posts if they click on a button element next to the post (similar to how Facebook works for posts).

    1. user clicks a button next to the post on the posts archive page
    2. then fetch the metabox edit post form e.g. [mb_frontend_form id="dc-product" post_id=315 confirmation="Your post has been updated" ajax="true"]

    I realise I could add in a edit post link next to each post to redirect the user to the post edit page, but ideally I want to let the user edit the post directly on the archive page.

    I have a feeling I this is not possible, but worth asking.

    Thanks

    #34180
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I've not tested this case but you can try to use Ajax to call a function to render the frontend submission shortcode and print it on the archive page.

    #34182
    Nicholas CoxNicholas Cox
    Participant

    Hi Long,

    good idea, I will give it a test

    Thanks

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