PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User able to edit post from front end

  1. DyliXious
    Member

    I've searched this forum thoroughly and couldn't find a solution for enabling the user to edit their post without logging in - via a unique post ID code.

    I searched the web and found a solution posted by someone using GF who had already got the user front end post editing to work. However as i'm not a coder, i don't know where to start.

    Could anyone walk me through this a little more detailed? if this solves the problem it would really benefit everyone.

    We have editing working with Gravity Forms, through a fairly simple process:
    1. Embed a hidden field in your form to hold the ID of the post to edit
    2. When you display the form using gravity_form() function in your template, pre-populate the fields with the data from your post ($field_values parameter)
    3. Add a hook to gform_post_data, that extracts the ID from the form (rgpost() function) and set $post_data["ID"] = your_post_id;
    That's it - when GF calls the wp_insert_post it will detect that ID is set and modify the existing post, rather than creating a new one.

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  2. Hi-

    You may be interested in this:

    http://wordpress.org/extend/plugins/gravity-forms-update-post/

    The first version has been released. If you have questions or have a bug email support@p51labs.com

    Thanks,

    Kevin

    Posted 12 years ago on Saturday April 28, 2012 | Permalink
  3. David Peralty

    Very cool Kevin, I look forward to trying it out myself.

    DyliXious - I hope his add-on helps as what you are hoping to do is complicated, even for those that have a great deal of programming ability.

    Posted 12 years ago on Sunday April 29, 2012 | Permalink