• Resolved Chetan Prajapati

    (@chetan200891)


    I have created custom post type submit form. It works. But how can I create edit post form? I tried {request:story_id} to load data. But it is not showing any field values in form. Can you help?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    In order to help you, you’ll have to provide more information about your setup, screenshots of your “Post: Update Action”, and additional data regarding where the form is being displayed.

    The {request:story_id} will check $_GET['story_id'] & $_POST['story_id'] of the page where the form is being displayed. So if your URL doesn’t have ?story_id=123 part, then it won’t work.

    Also please note that you have to map fields where you want data being loaded (+ check ACF fields if you want them loaded too), in the “Load” tab of the “Post: Update Action”.

    Regards.

    Thread Starter Chetan Prajapati

    (@chetan200891)

    Hi, Thanks for quick reply.

    Here are screenshot of setup.

    https://snipboard.io/2m8pjW.jpg
    https://snipboard.io/J8UHMq.jpg
    https://snipboard.io/wUcmPN.jpg
    https://snipboard.io/5Idrt8.jpg
    https://snipboard.io/JZ7YGt.jpg

    URL is like abc.com/sample-page-2/?story_id=336

    story is post type. Also I have country is taxonomy for it. I have added field to select country but it is not saving as term to that post. I want to load data of all custom fields on form.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Your form configuration looks alright, you forgot one major point tho, you forgot to tell which ACF fields should have their value filled.

    in the “Load” tab of the “Post: Update Action”, you’ll find those fields with checkbox. Check the fields in there to have their ACF values filled. If you want to to display native WP Post data like “Title”, “Post Type”, “Post Status” etc… you’ll have to map them above.

    UI Example: https://i.imgur.com/rhMGpJq.png

    Hope it helps!

    Regards.

    Thread Starter Chetan Prajapati

    (@chetan200891)

    Hi,

    Thanks for reply. But for me those fields are not showing.

    Load ACF fields are not showing.

    https://snipboard.io/DFIsVO.jpg

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    This is not normal, you’re supposed to see fields that are inside the field group you mapped in the “General” tab here: https://snipboard.io/2m8pjW.jpg

    Do you have any ACF field in your “Story Additional Fields” field group?

    Regards.

    Thread Starter Chetan Prajapati

    (@chetan200891)

    Those are not visible earlier. I can see it now. Looks like it is conflicting with “WP User Frontend” Plugin. I have deactivated it now fields are showing also on edit post too. Thank you very much for all your help. Really appreciated.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I’m glad to hear that it now works as expected ??

    Thanks for the review!

    Have a nice day.

    Regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to create post edit form?’ is closed to new replies.