<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Trying to make a form that posts to a new post on my site with {embed_URL}...</title>
		<link>https://legacy.forums.gravityhelp.com/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url</link>
		<description>Gravity Support Forums Topic: Trying to make a form that posts to a new post on my site with {embed_URL}...</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:23:26 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Trying to make a form that posts to a new post on my site with {embed_URL}..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url#post-44739</link>
			<pubDate>Wed, 21 Dec 2011 17:51:59 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">44739@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Where are you trying to use this?  Within the form itself or on the form Confirmation?&#60;/p&#62;
&#60;p&#62;The post isn't created until the form is submitted and processed and therefore the id of the post isn't known until that happens.&#60;/p&#62;
&#60;p&#62;The {post_id} is not going to exist until AFTER the form is submitted.  Typically it's only used in the email notifications and the form confirmation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>curtis@curtissmeltzer.com on "Trying to make a form that posts to a new post on my site with {embed_URL}..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url#post-44727</link>
			<pubDate>Wed, 21 Dec 2011 16:52:11 +0000</pubDate>
			<dc:creator>curtis@curtissmeltzer.com</dc:creator>
			<guid isPermaLink="false">44727@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't get that to work, so in the meantime, I have the following code&#34;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;fb-like&#38;quot; data-href=&#38;quot;{Upload Drawing:3}&#38;quot; data-send=&#38;quot;true&#38;quot; data-width=&#38;quot;250&#38;quot; data-show-faces=&#38;quot;false&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This adds a like button which likes the URL of the image that is uploaded in the form.  Not ideal because if someone clicks the link on facebook, they will show up at the image and not the post.-&#60;/p&#62;
&#60;p&#62;I think there may be a bug in the use of the {post_id} merge tag.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>curtis@curtissmeltzer.com on "Trying to make a form that posts to a new post on my site with {embed_URL}..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url#post-44720</link>
			<pubDate>Wed, 21 Dec 2011 16:03:30 +0000</pubDate>
			<dc:creator>curtis@curtissmeltzer.com</dc:creator>
			<guid isPermaLink="false">44720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I added the merge tag as shown below:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;fb-like&#38;quot; data-href=&#38;quot;http://http://www.wawasee.org/?p={post_id}&#38;quot; data-send=&#38;quot;true&#38;quot; data-width=&#38;quot;250&#38;quot; data-show-faces=&#38;quot;false&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;When the form is filled, this is the html that is generated:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;fb-like&#38;quot; data-href=&#38;quot;http://http://www.wawasee.org/?p=&#38;quot; data-send=&#38;quot;true&#38;quot; data-width=&#38;quot;250&#38;quot; data-show-faces=&#38;quot;false&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It just leaves the id out.  I had tried this option earier, but just figured that I did it wrong..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Trying to make a form that posts to a new post on my site with {embed_URL}..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url#post-44715</link>
			<pubDate>Wed, 21 Dec 2011 15:34:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">44715@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The embed_url is exactly that, the URL where the form was embedded.  I don't think that's what you want.  You want a link to the recently created post, correct?  &#60;/p&#62;
&#60;p&#62;The easiest way to do this is use the post ID and then create a URL with an ugly permalink based on that ID. It functions exactly like the shortened URL in WordPress and will expand to the pretty permalink based on your permalink settings.  Use this instead and see how it works.  Change the example.com to your website URL.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;div class=&#38;quot;fb-like&#38;quot; data-href=&#38;quot;http://example.com/?p={post_id}&#38;quot; data-send=&#38;quot;true&#38;quot; data-width=&#38;quot;250&#38;quot; data-show-faces=&#38;quot;false&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You want to use the merge tag {post_id} and append that to the URL for your site.  I think  that will work for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>curtis@curtissmeltzer.com on "Trying to make a form that posts to a new post on my site with {embed_URL}..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trying-to-make-a-form-that-posts-to-a-new-post-on-my-site-with-embed_url#post-44711</link>
			<pubDate>Wed, 21 Dec 2011 15:21:14 +0000</pubDate>
			<dc:creator>curtis@curtissmeltzer.com</dc:creator>
			<guid isPermaLink="false">44711@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Trying to make a form that posts to a new post on my site with {embed_URL}...  The problem is that the {embed_URL} is embedding URL to the page submitted from, and I want it to add a link to the post being created, so I can put the URL into a facebook &#34;like&#34; button automatically to &#34;Like&#34; the post individually.&#60;/p&#62;
&#60;p&#62;I used the merge tag like this: &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;fb-like&#38;quot; data-href=&#38;quot;{embed_url}&#38;quot; data-send=&#38;quot;true&#38;quot; data-width=&#38;quot;250&#38;quot; data-show-faces=&#38;quot;false&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
