Gravity Forms - Update Post
What does this plugin do?? (19 posts)

  1. snails07
    Posted 4 years ago #

    Probably the dumbest question ever (I've had a couple beers :), but what exactly can this plugin do?
    Allow you to edit/delete posts from the front end?


  2. hackstar
    Posted 4 years ago #


    I have the same question actually... What exactly does it do to GF? If im using the GF custom post type plugin will this allow users to edit their entry on the front end?

    Ive had a look at the installation details, but am unable to make it work. Maybe we can get some clearer instructions on its use.



  3. Alex
    Posted 4 years ago #

    You use it like this:


    the numbers are the post id

  4. C B
    Posted 4 years ago #

    On my site, I allow logged in users to submit a form that generates a custom post-type entry. This is achieved via Gravity Forms plus the associated GF Custom Post Types plugin.

    I've tried Alex's suggestion above and some-page-with-a-form?gform_post_id=123 (suggested on http://www.p51labs.com/gravity-forms-update-post-plugin-v0-5-1-released/) so that the user who submitted a form can edit the data after publication.

    site.com/submit/?gform_post_id=123 does not work at all for me.

    some-page-with-a-form?gform_post_id=123 kinda works --> While the proper form is displayed, it pulls in data from a regular blog entry submitted by the same user, instead of the proper custom post type.

    It would be helpful to have a step-by-step example on how to use this plugin. I would also like to know how to handle a case where a user submitted multiple entries. How does the form know which entry is to be edited?

    Thank you!

  5. Alex
    Posted 4 years ago #

    For some reason it does work for me using custom post types but i dont think it saves the data properly...It messes up on taxonomies I think....Ill give it a full try....

    As far as how users will know what posts to edit...you gotta make a list on the posts called "Edit This Post" and links to -> some-page-with-a-form?gform_post_id=123

    like this: <a href="/some-page-with-a-form?gform_post_id=<?php the_ID(); ?>">Edit This Post</a>

    Give it a try. That link should only work if they are the author of the current post

  6. C B
    Posted 4 years ago #

    @Alex - Thank you. Your suggestions helped. Previously, I thought 123 indicated the form ID.

    Now that I have made the fix, the form came back pre-populated with most, but not all fields. Image fields, for example, were empty. Since they are required for form submission, they needed to be re-uploaded. It also seems that some of the drop-downs are not filling in properly either, but I need to do more testing.

    I also ran into problems with fields where duplicate entries are not allowed. When I submitted the edited form, those fields failed be/c there was already data in the database.

  7. Earthman Web & Media
    Posted 4 years ago #

    Using the built-in "Post Fields" the following fields are not re-populating :

    • Featured Image
    • Categories(checkboxes)
    • Custom field data (url)
    • File uploads
    • Image uploads

    If I could figure out how to get it to appear the same as they do in 'preview' mode after submitting with form errors, that would work well.

    Are you currently making any progress on these issues?

  8. Alex
    Posted 4 years ago #

    I guess since this isn't working for now I'll take a look at http://wordpress.org/extend/plugins/front-end-editor/

    Until the author of this plugin updates the plugin.

    Let me know if you guys have any alternatives and If I find any then will add them here to let you guys know.

  9. C B
    Posted 4 years ago #

    @Alex - Thanks for the tip. I hadn't seen that plugin.

  10. Kevin Miller
    Plugin Author

    Posted 4 years ago #

    Hi Guys-

    I have posted a video up on the plugin page to give a basic example on how to use this thing. Now we have tested the plugin against a variety of fields and types, including Custom Post Types/Taxonomies. However this is the first release so I am sure some new situations/bugs will arise. That being said, if you run into anything please send the following to support@p51labs.com and we will get it addressed asap!

    1. WordPress Version
    2. Form XML Export
    3. Custom Post Types/Taxonomies needed
    4. Steps to reproduce the problem

    The plugin is getting weekly updates as we are using it in our work as well, so expect more updates soon.



    PS Just in case here is the video link: http://vimeo.com/41818285

  11. Alex
    Posted 4 years ago #

    Thanks Kevin. This plugin is great by the way. We'll keep it and test it. Thanks for the vid!

  12. Alex
    Posted 4 years ago #

    Still no update... New Custom Post Types Gravity Form update coming soon though, maybe it comes with this feature

  13. dskvr
    Posted 4 years ago #

    If you use unique custom fields, you'll want to change line 368 from
    $meta = get_post_meta($this->post['ID'], $field['postCustomFieldName']);
    $meta = get_post_meta($this->post['ID'], $field['postCustomFieldName'], true);

  14. dskvr
    Posted 4 years ago #

    One of the problems I have found is that you have to have the title and body fields populated in your form, otherwise they will be overwritten. Ideally, this would not be required as not everybody is using the 'Update' functionality to update the entire post. My temporary workaround includes hiding the post title field in my forms. But this is not ideal because I do not want to the user to be able to edit the title, and a more advanced user could figure out how to do so.

  15. tomdaquino
    Posted 4 years ago #

    Thanks dskvr. Your custom fields fix helped me out a lot.


  16. cleanapple
    Posted 4 years ago #

    This thread has been incredibly helpful. I hope someone will check and answer a final question that I have.

    I'd like to be able to generate an automatic link to the editable form when a new page is published.

    I tried to include html (<a href="/some-page-with-a-form?gform_post_id=<?php the_ID(); ?>">Edit This Post</a>) in the merged body of the post, but it doesn't display correctly.

    If I could get that to work, it would be incredible. Is there any other way to make this happen?

    Thank you!

  17. kerrylgeiger
    Posted 4 years ago #

    Couple things

    1) If you have a form that may have blank data and you don't want those fields to be created after update make the change dskvr suggests above and enclose the 2 following lines in an if blank check.

    $meta = get_post_meta($this->post['ID'], $field['postCustomFieldName'], true);
    		if($meta != '') {
            	delete_post_meta($this->post['ID'], $field['postCustomFieldName']);
            	add_post_meta($this->post['ID'], $field['postCustomFieldName'], is_array($meta) && count($meta) == 1 ? $meta[0] : $meta, true);

    For cleanapple, you have to make sure your link is in the WP loop on your template otherwise the_ID will not work - maybe that's it?

  18. ramey
    Posted 3 years ago #

    Where does this get_post_meta go?

    I've included "">Edit This Post" on the page which displays the post and it does display the expected post - BUT custom fields are not initialized. What do I have to do to make this work?

  19. ramey
    Posted 3 years ago #

    OK - my mistake

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms - Update Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic