<?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: Pass URL to form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pass-url-to-form</link>
		<description>Gravity Support Forums Topic: Pass URL to form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:09:39 +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/pass-url-to-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Pass URL to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-url-to-form#post-134160</link>
			<pubDate>Mon, 28 Jan 2013 14:33:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">134160@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Change line 4 to this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
return get_permalink($post-&#38;gt;ID);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Zbysek Nadenik on "Pass URL to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-url-to-form#post-127468</link>
			<pubDate>Mon, 21 Jan 2013 08:07:10 +0000</pubDate>
			<dc:creator>Zbysek Nadenik</dc:creator>
			<guid isPermaLink="false">127468@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I found this code snippet here &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/use-postpage-title-for-subject&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/use-postpage-title-for-subject&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;1- Add the Post Title field to your form&#60;br /&#62;
a- Allow it to be populated dynamically (advanced tab)&#60;br /&#62;
b- Type &#34;posttitle&#34; in the &#34;parameter name&#34; text field&#60;/p&#62;
&#60;p&#62;2- Add the following code snippet to your template's functions.php file&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_field_value_posttitle&#38;#39;, &#38;#39;populate_post_title&#38;#39;);
function populate_post_title(){
global $post;
return $post-&#38;gt;post_title;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It works great, but I dont know how to get the post URL instead of post title. Can somewho I do that?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
