Ready to get started?Download WordPress


Gravity Forms - Update Post
Automatically generate a link to the editable form? (4 posts)

  1. cleanapple
    Posted 2 years ago #

    I'm using this plugin along with Gravity Forms + Custom Post Types. So far, things are working extremely well. I just have one main issue that I need addressed.

    When a user submits a form (which makes a new post), 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> (with the actual URL at the start) in the merged body of the post, but it doesn't display correctly on the new post.

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

    Thank you!


  2. iphoenix
    Posted 1 year ago #

    any update on this?

  3. alesandro85
    Posted 1 year ago #

    Same problem with me. Would be great if someone knows how get the <?php the_ID(); ?> Code working.

    In another post someone told that the code have to be implemented "in the loop" whatever that means :) .

    I would very appreciate if so know the solution for that issue.


  4. srumery
    Posted 1 year ago #

    I was able to get this to work in another Gravity Form installation. In that case, I was using the GravityForm to create a post, not the plugin in this support form. This solution should work for you just as well.

    1. install "Post link shortcode" - http://wordpress.org/extend/plugins/post-link-shortcode/
    2. add the code below to your Gravity Form "Confirmation" textarea

    <h2>View your new listing: <strong>[post id="{post_id}" anchor="yes" title="{Site Title:1}" text="{Site Title:1}"]</strong></h2>

    I'm sure there are other ways to get this done. This is the one what worked for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.