<?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: Set Post Type After Submission</title>
		<link>https://legacy.forums.gravityhelp.com/topic/set-post-type-after-submission</link>
		<description>Gravity Support Forums Topic: Set Post Type After Submission</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 17:15:51 +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/set-post-type-after-submission" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Set Post Type After Submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-type-after-submission#post-115617</link>
			<pubDate>Sun, 06 Jan 2013 23:35:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">115617@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You need a little help with that code.  Try this instead:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
// this will apply to form 1 only
// change the _1 to your form ID if necessary
add_action(&#38;#39;gform_after_submission_1&#38;#39;, &#38;#39;gf_set_post_type&#38;#39;, 10, 2);
function gf_set_post_type($entry, $form) {
    set_post_type($entry[&#38;#39;post_id&#38;#39;], &#38;#39;Review&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if that works for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ftbs on "Set Post Type After Submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-type-after-submission#post-115231</link>
			<pubDate>Sun, 06 Jan 2013 12:05:05 +0000</pubDate>
			<dc:creator>ftbs</dc:creator>
			<guid isPermaLink="false">115231@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The default post type after submission of my form is 'Article'. I want it to be a custom post type called 'Review'.  I've added the following into functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_after_submission_1&#38;#39;, &#38;#39;set_post_type&#38;#39;, 10, 2);
	set_post_type(&#38;#39;post_id&#38;#39;,&#38;#39;Review&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It's pretty straightforward. I'm trying to to set the post type to 'Review' after the form is submitted. No luck.  Any suggestions? Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
