<?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: Display Form on Category Link</title>
		<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link</link>
		<description>Gravity Support Forums Topic: Display Form on Category Link</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:48:21 +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/display-form-on-category-link" rel="self" type="application/rss+xml" />

		<item>
			<title>Jeroen1973 on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45861</link>
			<pubDate>Mon, 09 Jan 2012 10:46:48 +0000</pubDate>
			<dc:creator>Jeroen1973</dc:creator>
			<guid isPermaLink="false">45861@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for your help Chris, but I have figured it out. I was close, the above code works perfectly I just wasn't calling the correct parameter name. All I had to do was change &#34;gform_field_value_categoryid&#34; to &#34;gform_field_value_category&#34; as that was the name I had given the parameter. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen1973 on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45777</link>
			<pubDate>Sat, 07 Jan 2012 12:12:40 +0000</pubDate>
			<dc:creator>Jeroen1973</dc:creator>
			<guid isPermaLink="false">45777@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, I am still somewhat of a novice I feel and I do appreciate your help. I have added the index.php (which loads all my categories) to a pastie here &#60;a href=&#34;http://pastie.org/3143768&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3143768&#60;/a&#62; Line 90 is where I call the form. You can view the form on any of my category pages. here is 1 example &#60;a href=&#34;http://freeineurope.com/category/free-tourist-attractions-in-netherlands-holland/&#34; rel=&#34;nofollow&#34;&#62;http://freeineurope.com/category/free-tourist-attractions-in-netherlands-holland/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The Post Category field currently displays a drop down box with the option to select any of the categories in my blog. However in the case of the Holland Category linked above I want this field to be pre-populated with the &#34;Holland&#34; Category.&#60;/p&#62;
&#60;p&#62;I found the below code on this forum ( &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamically-populate-field-using-variable&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamically-populate-field-using-variable&#60;/a&#62; ) without success&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_categoryid&#38;quot;, &#38;quot;populate_categoryid&#38;quot;);
function populate_categoryid($value){
return get_query_var(&#38;#39;cat&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Please advise if you need more information.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45675</link>
			<pubDate>Thu, 05 Jan 2012 21:55:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">45675@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please share some of the code you're using, template files, your theme's functions.php, etc.  Use pastie.org or pastebin.com if the code examples are lengthy.  We won't be able to help you without seeing the code you're using.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen1973 on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45601</link>
			<pubDate>Thu, 05 Jan 2012 13:00:43 +0000</pubDate>
			<dc:creator>Jeroen1973</dc:creator>
			<guid isPermaLink="false">45601@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris, I found the link and have used the function call to retrieve the form and insert it into category page.&#60;/p&#62;
&#60;p&#62;I have found many pieces of code that should actually do what i want but they don't seem to work. We will continue, however if you can provide some assistance it would be much appreciated.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45469</link>
			<pubDate>Wed, 04 Jan 2012 17:16:41 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">45469@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I fixed the link.  Sorry about that.  Can you take a look at that and let me know if you have any questions?  Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen1973 on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45343</link>
			<pubDate>Tue, 03 Jan 2012 10:41:41 +0000</pubDate>
			<dc:creator>Jeroen1973</dc:creator>
			<guid isPermaLink="false">45343@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris,&#60;/p&#62;
&#60;p&#62;Your link was broken.&#60;/p&#62;
&#60;p&#62;I just have 1 category template on my &#34;Swift Theme&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45297</link>
			<pubDate>Mon, 02 Jan 2012 20:52:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">45297@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To add it to the category archive, you will have to add the form to the template file using the function call.  You can read more about that &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call&#34; rel=&#34;nofollow&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;When you do that, you can use WordPress functions to get the category and populate the category field dynamically.  Do you use specific templates for each category, or one archive.php or other file for all your categories?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen1973 on "Display Form on Category Link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-form-on-category-link#post-45281</link>
			<pubDate>Mon, 02 Jan 2012 13:40:28 +0000</pubDate>
			<dc:creator>Jeroen1973</dc:creator>
			<guid isPermaLink="false">45281@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would like to display a &#34;Post to this Category&#34; form on the main category pages. I would also like the  category field dynamically populated with the current category being viewed. &#60;/p&#62;
&#60;p&#62;Please let me know if more information is required.&#60;/p&#62;
&#60;p&#62;Regards Jeroen.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
