<?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: Get a form id from title</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-a-form-id-from-title</link>
		<description>Gravity Support Forums Topic: Get a form id from title</description>
		<language>en-US</language>
		<pubDate>Sun, 12 Apr 2026 06:39:09 +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/get-a-form-id-from-title" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Get a form id from title"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-a-form-id-from-title#post-43119</link>
			<pubDate>Mon, 05 Dec 2011 11:24:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">43119@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great - I learned something new in the process there :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jezza73 on "Get a form id from title"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-a-form-id-from-title#post-43109</link>
			<pubDate>Mon, 05 Dec 2011 06:39:29 +0000</pubDate>
			<dc:creator>jezza73</dc:creator>
			<guid isPermaLink="false">43109@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you very much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Get a form id from title"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-a-form-id-from-title#post-42818</link>
			<pubDate>Thu, 01 Dec 2011 20:51:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">42818@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can use this Gravity Forms function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$form_id = RGFormsModel::get_form_id($post-&#38;gt;post_title);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That will take the post title of the current post (assuming the $post object is storing it) and find the ID of a form with that exact title.  Then you can use $form_id in your gravity_form function call, like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php gravity_form($form_id, false, false, false, &#38;#39;&#38;#39;, false); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will need to handle any sort of error if no form is found or if there are case differences, but this function will return the form ID based on the form title.  In your case, the Page title will be the same, which is why you can use that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jezza73 on "Get a form id from title"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-a-form-id-from-title#post-42181</link>
			<pubDate>Fri, 25 Nov 2011 12:10:55 +0000</pubDate>
			<dc:creator>jezza73</dc:creator>
			<guid isPermaLink="false">42181@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am using the php method of embedding forms. I have a template which I want to use to embed a form by using the page title to look up a form id by matching it to a form title.&#60;/p&#62;
&#60;p&#62;As an example, if a wordpress page has the title &#34;page one&#34; I want to embed the form which has a title of &#34;page one&#34; but I can only do this by getting the form's id number. If I can match the wordpress page title to the form's title I should then be able to get its id number.&#60;/p&#62;
&#60;p&#62;Any ideas how I can do this?&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
