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.

Post ID

  1. I am using the forms to allow visitors to create posts on my site and would like to have the notification to the user contain a link to the post. When I use the [post ID] it uses a number which doesn't work when I have permalinks enabled.

    Any thoughts?

    Kris Rhoades
    http://www.he-is-listening.com

    Posted 16 years ago on Friday November 13, 2009 | Permalink
  2. I figured it out...I had the link incorrect. It should be
    http://www.mysite.com/index.php?p={post_id}

    It works fine now.

    Posted 16 years ago on Saturday November 14, 2009 | Permalink
  3. Great. Thanks for posting the solution.

    Posted 16 years ago on Saturday November 14, 2009 | Permalink
  4. This code:
    http://www.mysite.com/index.php?p={post_id}

    Does not work on my site. Neither does this code:
    http://www.mysite.com/index.php?p={embed_post:ID}

    I, too, need the ability to create a field with the url value of the post being created. Not the page with the form, but the url to the post being created by the form. For the life of me, I can not figure out how to do this within gravity forms.

    Any suggestions?

    Posted 14 years ago on Monday July 11, 2011 | Permalink
  5. This code:
    http://www.mysite.com/index.php?p={post_id}

    Should work. I just tested using that in my form confirmation message and it worked fine. If it's not working, then something must be wrong with your permalinks.

    When you see the link generated with the actual post_id, what does it look like? Keep in mind this is only going to work on a form that creates a Post for the {post_id} to have a value.

    Posted 14 years ago on Monday July 11, 2011 | Permalink
  6. You're right, it sure does. Strange, I really did test. Works like a charm!

    Posted 14 years ago on Monday July 11, 2011 | Permalink

This topic has been resolved and has been closed to new replies.