<?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: Save image field and post title also as custom fields?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields</link>
		<description>Gravity Support Forums Topic: Save image field and post title also as custom fields?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:25:00 +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/save-image-field-and-post-title-also-as-custom-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-12417</link>
			<pubDate>Wed, 10 Nov 2010 15:23:30 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">12417@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;1.5 Beta 1 has a bug on the gform_post_submission hook. The entry information is not getting passed to that hook properly. Email me at &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62; and I will send you another beta version with the fix.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-12379</link>
			<pubDate>Tue, 09 Nov 2010 19:25:42 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">12379@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't seem to get this to work, using 1.5.beta1&#60;/p&#62;
&#60;p&#62;here is form my export:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1285755&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1285755&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;update_form_post&#38;quot;, 10, 2);
function update_form_post($entry, $form) {

    if($form[&#38;#39;id&#38;#39;] != 4) return;

    // update post image
    $postimage = explode(&#38;#39;&#124;:&#124;&#38;#39;, $entry[1]);
    $postid = $entry[&#38;quot;post_id&#38;quot;];
    update_post_meta($postid, &#38;#39;imageurl&#38;#39;, $postimage[0]);

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any clue as to what I'm doing wrong here?&#60;/p&#62;
&#60;p&#62;I believe I've set the form and entry ids properly.  I've tried with an existing custom field name and a non-existent field, no dice.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>splashpress on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-11543</link>
			<pubDate>Sat, 23 Oct 2010 12:06:45 +0000</pubDate>
			<dc:creator>splashpress</dc:creator>
			<guid isPermaLink="false">11543@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thankyou for this&#60;br /&#62;
- Ali
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-8336</link>
			<pubDate>Sun, 08 Aug 2010 09:14:48 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">8336@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any custom code to use API hooks to change how Gravity Forms functions would be placed in your themes functions.php file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Geary on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-8323</link>
			<pubDate>Sat, 07 Aug 2010 09:16:41 +0000</pubDate>
			<dc:creator>Kevin Geary</dc:creator>
			<guid isPermaLink="false">8323@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure how to make this work.  Where do you place the snippets???
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-8308</link>
			<pubDate>Fri, 06 Aug 2010 17:35:32 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">8308@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Easiest way to see the field IDS is to view source or use a page inspector like FireBug in FireFox to view the page source and see what the field ids are.  They are present in the HTML.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jangro on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-8305</link>
			<pubDate>Fri, 06 Aug 2010 16:58:52 +0000</pubDate>
			<dc:creator>jangro</dc:creator>
			<guid isPermaLink="false">8305@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Worked like a charm, thank you!&#60;/p&#62;
&#60;p&#62;It took me a while to figure out the field ids.  For anyone else reading this, the easiest way that I could find was to add the field to the notification body which shows the ID. (though I'd already dug it out of the database before I found that.)&#60;/p&#62;
&#60;p&#62;Is there a more obvious place for the field IDs that I missed?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-8298</link>
			<pubDate>Fri, 06 Aug 2010 15:55:17 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">8298@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a quick snippet to get the post image url into a custom key. See if you can't use this as a base to figure out part two of your question: &#60;a href=&#34;http://pastie.org/1080289&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1080289&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Values to change to make this work with your form:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if($form[&#38;#39;id&#38;#39;] != 1) return;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Change &#34;1&#34; to the id of your form.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$postimage = explode(&#38;#39;&#124;:&#124;&#38;#39;, $entry[29]);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Change &#34;29&#34; to the id of your &#60;strong&#62;post image&#60;/strong&#62; field.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;update_post_meta($postid, &#38;#39;image&#38;#39;, $postimage[0]);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Update 'image' to whatever you want the custom field to be.&#60;/p&#62;
&#60;p&#62;Hope that helps. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jangro on "Save image field and post title also as custom fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/save-image-field-and-post-title-also-as-custom-fields#post-8297</link>
			<pubDate>Fri, 06 Aug 2010 15:26:21 +0000</pubDate>
			<dc:creator>jangro</dc:creator>
			<guid isPermaLink="false">8297@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a submission form that saves several fields of data as custom fields that I use in displaying the post.&#60;/p&#62;
&#60;p&#62;In order to get the post saved as a draft post, I have to have a Post title field.  That's fine, but I want that same information put in a custom field.  I've worked around this by forcing the user to enter the same data twice. (blech.)&#60;/p&#62;
&#60;p&#62;I also get an image upload and I want the URL placed in a custom field.  I don't have any workaround to this.  So I have to copy the URL in later. (blech.)&#60;/p&#62;
&#60;p&#62;Is there any way to accomplish these two things?&#60;/p&#62;
&#60;p&#62;The form is here: &#60;a href=&#34;http://www.pimpmysafari.com/submit&#34; rel=&#34;nofollow&#34;&#62;http://www.pimpmysafari.com/submit&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
