<?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: Overwrite Custom Post type using Form?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/overwrite-custom-post-type-using-form</link>
		<description>Gravity Support Forums Topic: Overwrite Custom Post type using Form?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:27:50 +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/overwrite-custom-post-type-using-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Overwrite Custom Post type using Form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/overwrite-custom-post-type-using-form#post-129755</link>
			<pubDate>Wed, 23 Jan 2013 20:16:06 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">129755@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well, it's slightly complicated and I don't know of anyone who has posted a complete solution.  In theory though, it would work like this:&#60;/p&#62;
&#60;p&#62;Create a form with all the fields of the post you want people to be able to update.  This could be similar to the form you currently use to create the post.  I would not use post fields since that will create a new post.  I would use regular form fields of the relevant type (file upload for a post image, single line text for the post title, paragraph for the post body, etc.)&#60;/p&#62;
&#60;p&#62;Then, on the advanced tab of each field you want them to be able to edit, check the &#34;Allow field to be populated dynamically&#34; and give the field a unique parameter name.&#60;/p&#62;
&#60;p&#62;Then, you would need to write a function that uses the gform_pre_render filter to pull information from the custom post to populate those fields. &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In the function, you would retrieve the information from the post you want to update, ( &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_post&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_post&#60;/a&#62; ) then populate the fields with that information.  When the form is displayed, that information will be visible in the form, ready to be edited.&#60;/p&#62;
&#60;p&#62;On submission, you would have to use the gform_after_submission hook to update the existing post ( &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_update_post&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_update_post&#60;/a&#62; ). &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;  You would take all the information that was submitted and rewrite (update) the existing post.&#60;/p&#62;
&#60;p&#62;It's possible to do. You'd have to consider how to allow only certain users to update certain posts, and how to display the list of posts they can edit.&#60;/p&#62;
&#60;p&#62;Another way around it would be to allow the logged in user to just edit the post on the front end.  This would just be a WordPress plugin function. Something like this &#60;a href=&#34;http://wordpress.org/extend/plugins/front-end-editor/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/front-end-editor/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Good luck
&#60;/p&#62;</description>
		</item>
		<item>
			<title>graphical_force on "Overwrite Custom Post type using Form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/overwrite-custom-post-type-using-form#post-129740</link>
			<pubDate>Wed, 23 Jan 2013 19:41:54 +0000</pubDate>
			<dc:creator>graphical_force</dc:creator>
			<guid isPermaLink="false">129740@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the reply. How might I go about loading a post into a form?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Overwrite Custom Post type using Form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/overwrite-custom-post-type-using-form#post-129738</link>
			<pubDate>Wed, 23 Jan 2013 19:32:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">129738@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How about this 3rd party plugin:&#60;br /&#62;
&#60;a href=&#34;http://www.p51labs.com/gravity-forms-update-post-plugin-v0-5-1-released/&#34; rel=&#34;nofollow&#34;&#62;http://www.p51labs.com/gravity-forms-update-post-plugin-v0-5-1-released/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Editing an existing entry or post created by a form is not a feature of Gravity Forms. &#60;/p&#62;
&#60;p&#62;The Directory and Add-ons add-on might also help, although it would change the way your directory is displayed:  &#60;a href=&#34;http://wordpress.org/extend/plugins/gravity-forms-addons/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/gravity-forms-addons/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Finally, there is probably a way to load the existing post into a form and allowing the user to change the values and submit again.  It would create a new entry, but you could update the existing post rather than create a new post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>graphical_force on "Overwrite Custom Post type using Form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/overwrite-custom-post-type-using-form#post-129591</link>
			<pubDate>Wed, 23 Jan 2013 13:26:03 +0000</pubDate>
			<dc:creator>graphical_force</dc:creator>
			<guid isPermaLink="false">129591@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I have a form that users can use to become a Vendor. Submission of the form creates a custom post type and stores other fields of the form in custom fields. The issue I am having is that the user cannot edit their Vendor Custom Post Type. What I was wanting to know if it is possible for them to overwrite the custom post type if they submit a new form? Right now, it will just show two custom post types. &#60;/p&#62;
&#60;p&#62;Anyone have any suggestions?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
