<?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: Can Pages be created from form submissions?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions</link>
		<description>Gravity Support Forums Topic: Can Pages be created from form submissions?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:38:18 +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/can-pages-be-created-from-form-submissions" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-38342</link>
			<pubDate>Wed, 19 Oct 2011 15:52:02 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38342@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like the function name set_post_type is being used by WordPress, which is why you have this error.  Rename the function, on two lines (22 and 23 in the pastie).  Anything that won't conflict, like &#60;strong&#62;senat_set_post_type&#60;/strong&#62;.  Change that on both lines and see if that works.  It will get rid of the fatal error for sure.&#60;/p&#62;
&#60;p&#62;Thanks for the troubleshooting information.  It helps a lot.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>senat on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-38330</link>
			<pubDate>Wed, 19 Oct 2011 14:04:46 +0000</pubDate>
			<dc:creator>senat</dc:creator>
			<guid isPermaLink="false">38330@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh also&#60;br /&#62;
[19-Oct-2011 17:58:20] PHP Fatal error: Cannot redeclare set_post_type() (previously declared in /home1/carclubb/public_html/diaperdeals/wp-includes/post.php:1323) in /home1/carclubb/public_html/diaperdeals/wp-content/themes/freshlife1/functions.php on line 28
&#60;/p&#62;</description>
		</item>
		<item>
			<title>senat on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-38328</link>
			<pubDate>Wed, 19 Oct 2011 13:54:33 +0000</pubDate>
			<dc:creator>senat</dc:creator>
			<guid isPermaLink="false">38328@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, it's here&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/2725128&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2725128&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-38321</link>
			<pubDate>Wed, 19 Oct 2011 12:58:55 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38321@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;A 500 internal server error means you have a syntax error in the file you just modified.  Please post your functions.php to pastebin.com or pastie.org and we'll help you find the error.  If you have access to logging on your host, the error should be logged as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>senat on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-38319</link>
			<pubDate>Wed, 19 Oct 2011 12:53:16 +0000</pubDate>
			<dc:creator>senat</dc:creator>
			<guid isPermaLink="false">38319@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, is there a way to generate a page as per &#34;We will be expanding the post field functionality to support custom post types (and pages) as an option in the field editor once WordPress 3.0 is released and custom post types become easier to access.&#34; &#60;/p&#62;
&#60;p&#62;Or do I still need to modify functions.php?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>senat on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-38318</link>
			<pubDate>Wed, 19 Oct 2011 12:51:49 +0000</pubDate>
			<dc:creator>senat</dc:creator>
			<guid isPermaLink="false">38318@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I have tried all of the above codes in the functions.php file, is that the wrong file? Or is this some kind of conflict? I get the following error no matter which one:&#60;/p&#62;
&#60;p&#62;HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-13130</link>
			<pubDate>Mon, 22 Nov 2010 16:06:09 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">13130@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just to clarify, do you want to change it so that the &#34;post_parent&#34; is set to the page/post that the form is embedded to?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikeboysen on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-13070</link>
			<pubDate>Sun, 21 Nov 2010 09:03:30 +0000</pubDate>
			<dc:creator>mikeboysen</dc:creator>
			<guid isPermaLink="false">13070@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How can this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$post_data[&#38;quot;post_parent&#38;quot;] = 42;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;be changed to pass the ParentId from the form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dannybull on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-8939</link>
			<pubDate>Mon, 23 Aug 2010 17:35:25 +0000</pubDate>
			<dc:creator>dannybull</dc:creator>
			<guid isPermaLink="false">8939@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The following code worked for me (I'm running WordPress 2.8.4):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;change_post_type&#38;quot;, 10, 2);
function change_post_type($post_data, $form){
    //only change post type on form id X
    if($form[&#38;quot;id&#38;quot;] != 1) // You need to change your form ID here
       return $post_data;

	   // Add other page data to change
	   $post_data[&#38;quot;post_type&#38;quot;] = &#38;quot;page&#38;quot;;
	   $post_data[&#38;quot;post_parent&#38;quot;] = 42;
    return $post_data;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>flameboyuk on "Can Pages be created from form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-pages-be-created-from-form-submissions#post-4974</link>
			<pubDate>Sun, 25 Apr 2010 21:24:11 +0000</pubDate>
			<dc:creator>flameboyuk</dc:creator>
			<guid isPermaLink="false">4974@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I there. Thanks for the help. I got the blank screens too and although the screen no longer goes white, your fix didn't work for me. It doesn't even give me the option to edit posts anymore. Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
