<?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: Help with list field array filing to custom field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/help-with-list-field-array-filing-to-custom-field</link>
		<description>Gravity Support Forums Topic: Help with list field array filing to custom field</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 05:20:12 +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/help-with-list-field-array-filing-to-custom-field" rel="self" type="application/rss+xml" />

		<item>
			<title>jacorre on "Help with list field array filing to custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-with-list-field-array-filing-to-custom-field#post-46332</link>
			<pubDate>Fri, 13 Jan 2012 20:56:53 +0000</pubDate>
			<dc:creator>jacorre</dc:creator>
			<guid isPermaLink="false">46332@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nevermind I scratched gravity forms and created my own form instead.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacorre on "Help with list field array filing to custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-with-list-field-array-filing-to-custom-field#post-45729</link>
			<pubDate>Fri, 06 Jan 2012 16:50:46 +0000</pubDate>
			<dc:creator>jacorre</dc:creator>
			<guid isPermaLink="false">45729@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Since it appears you cannot change the name value on an input field, I decided to take a try at using the gform_after_submission hook and see if I could file the form fields to the custom field in Wordpress. Surprisingly I'm almost there! Just need help with the array.&#60;/p&#62;
&#60;p&#62;Instructions is a 1 column list field and it's number 10. I'm trying to file this to a custom field called instruction. &#60;/p&#62;
&#60;p&#62;I'm using the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function set_post_content($entry, $form) {
 $post = get_post($entry[&#38;quot;post_id&#38;quot;]);
 $instructions = $entry[10];
 $post-&#38;gt;post_content = $instructions;
 update_post_meta($entry[&#38;quot;post_id&#38;quot;],&#38;#39;instruction&#38;#39;,$post);
}
add_action(&#38;quot;gform_after_submission_1&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;After submitting the following:&#60;/p&#62;
&#60;p&#62;Step 1 instruction&#60;br /&#62;
Step 2 instruction&#60;/p&#62;
&#60;p&#62;I'm seeing the following appear in the back end when it's filed to my custom post type:&#60;/p&#62;
&#60;p&#62;3&#60;br /&#62;
1&#60;br /&#62;
2&#60;br /&#62;
0&#60;br /&#62;
a&#60;br /&#62;
T&#60;br /&#62;
...&#60;/p&#62;
&#60;p&#62;I think it's pieces of the array. What am I missing to allow it file the data correctly? Thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
