<?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: Dynamically call a different gravity form based on custom field in a post</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post</link>
		<description>Gravity Support Forums Topic: Dynamically call a different gravity form based on custom field in a post</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:23:55 +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/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Dynamically call a different gravity form based on custom field in a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post#post-154637</link>
			<pubDate>Tue, 26 Feb 2013 00:48:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">154637@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Got it. Thanks for that additional information.  What is the actual error you are receiving (the full message please) and also, where are you using this PHP code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stankobrin on "Dynamically call a different gravity form based on custom field in a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post#post-154627</link>
			<pubDate>Tue, 26 Feb 2013 00:37:41 +0000</pubDate>
			<dc:creator>stankobrin</dc:creator>
			<guid isPermaLink="false">154627@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When I echo out the $formid - I get the correct value of the form ie. 12.&#60;/p&#62;
&#60;p&#62;I am using the advanced custom fields plugin to generate the custom fields. The method for calling these fields is to use &#34;the_field('field_name')
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamically call a different gravity form based on custom field in a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post#post-154559</link>
			<pubDate>Mon, 25 Feb 2013 23:13:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">154559@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you echo $formid before you try to embed the form to see what it contains and be sure it contains the correct integer for your form ID?&#60;/p&#62;
&#60;p&#62;I've not see the WordPress function &#34;the_field&#34;.  Do you have documentation for that or if that's a function you wrote, please share the code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stankobrin on "Dynamically call a different gravity form based on custom field in a post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-call-a-different-gravity-form-based-on-custom-field-in-a-post#post-154186</link>
			<pubDate>Mon, 25 Feb 2013 10:44:40 +0000</pubDate>
			<dc:creator>stankobrin</dc:creator>
			<guid isPermaLink="false">154186@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi GF&#60;/p&#62;
&#60;p&#62;I have a particular case where I need to assign a different Gravity Form to each post in a Wordpress query. We have added an &#34;id&#34; custom field to the backend which references the gravity form id. &#60;/p&#62;
&#60;p&#62;What we need now is way to (via php code) call that gravity from but replace the form id with the custom field value.&#60;/p&#62;
&#60;p&#62;This is the code we have tried:&#60;/p&#62;
&#60;p&#62; &#38;lt;?php $formid = the_field('bid_form_id');&#60;br /&#62;
        gravity_form($formid, false, false, false, '', false, 12); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;However we are receiving an invalid argument error.&#60;/p&#62;
&#60;p&#62;Is this possible and if so, how would be go about implementing it?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
