<?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: GF and ACF</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf</link>
		<description>Gravity Support Forums Topic: GF and ACF</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:01:45 +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/gf-and-acf" rel="self" type="application/rss+xml" />

		<item>
			<title>webaware on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-138047</link>
			<pubDate>Fri, 01 Feb 2013 00:02:00 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">138047@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@popsantiago: well done!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-137413</link>
			<pubDate>Thu, 31 Jan 2013 09:25:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">137413@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for sharing your progress here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>popsantiago on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-137209</link>
			<pubDate>Thu, 31 Jan 2013 05:58:32 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">137209@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh Yeah !&#60;/p&#62;
&#60;p&#62;That's work, today is a little step for you, but a big one for me =)&#60;/p&#62;
&#60;p&#62;So for other : Function change Gravity Form image post upload to an Advanced Custom Fields add-on Gallery (maybe can help...)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_$formID&#38;quot;, &#38;quot;acf_gallery_gformAfterSubmission&#38;quot;, 10, 2);
function acf_gallery_gformAfterSubmission ($entry, $form)
{
   $post_id = $entry[&#38;quot;post_id&#38;quot;];
		$attachments = get_posts( array(
			&#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;,
			&#38;#39;posts_per_page&#38;#39; =&#38;gt; -1,
			&#38;#39;post_parent&#38;#39; =&#38;gt; $post_id
		) );

		if ( $attachments ) {
			foreach ( $attachments as $attachment ) {
				$image_collections[] = strval($attachment-&#38;gt;ID) ;
			}
		}

	$image_collections = serialize($image_collections);
	update_post_meta($post_id,&#38;#39;image_collections&#38;#39;,$image_collections);

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Maybe this function can be optimized...&#60;/p&#62;
&#60;p&#62;See you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>popsantiago on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-136620</link>
			<pubDate>Wed, 30 Jan 2013 15:25:34 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">136620@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thx both,&#60;br /&#62;
My first problem is fix (GF post to ACF)&#60;/p&#62;
&#60;p&#62;I'm working on the 2nd problems, and i'm here :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_action(&#38;quot;gform_after_submission_$formID&#38;quot;, &#38;quot;acf_gallery_gformAfterSubmission&#38;quot;, 10, 2);
function acf_gallery_gformAfterSubmission ($entry, $form)
{
   $post_id = $entry[&#38;quot;post_id&#38;quot;];
		$attachments = get_posts( array(
			&#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;attachment&#38;#39;,
			&#38;#39;posts_per_page&#38;#39; =&#38;gt; -1,
			&#38;#39;post_parent&#38;#39; =&#38;gt; $post_id
		) );

		if ( $attachments ) {
			foreach ( $attachments as $attachment ) {
				print_r(array($attachment-&#38;gt;ID));
			}
		}
	exit;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now i got a string ID1ID2ID3.... but that's not good for me... i need an array like or a ID1,ID2,ID3,... (this suite help me to use the @webaware help :&#60;br /&#62;
&#60;code&#62;$image_collections =&#60;/code&#62;serialize(explode(',', $IDs));`&#60;br /&#62;
and i will update ACF customfield :&#60;br /&#62;
&#60;code&#62;update_post_meta($post_id,&#38;#39;image_collections&#38;#39;,$image_collections);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If i'm always on the right way, can you help me with the exit format of Attachement ID ?&#60;/p&#62;
&#60;p&#62;Thank,&#60;/p&#62;
&#60;p&#62;Laurent
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-135816</link>
			<pubDate>Wed, 30 Jan 2013 01:07:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">135816@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks webaware for sharing your knowledge.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webaware on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-135524</link>
			<pubDate>Tue, 29 Jan 2013 18:21:23 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">135524@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@popsantiago: have you see this on WordPress StackExchange? Look at both answers, one might be the answer you need.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.stackexchange.com/q/78826/24260&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.stackexchange.com/q/78826/24260&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>popsantiago on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-135318</link>
			<pubDate>Tue, 29 Jan 2013 13:21:46 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">135318@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@illinoisharley, thanks for reply, i keep going before spend money.&#60;br /&#62;
But can you tell me how can i retry the ATTACHEMENT_ID and where i need to do the update meta field ?&#60;br /&#62;
## Gform_pre_submission&#60;br /&#62;
## Gform_after_submission (i think here ?)&#60;/p&#62;
&#60;p&#62;Thank you&#60;/p&#62;
&#60;p&#62;Laurent
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-135269</link>
			<pubDate>Tue, 29 Jan 2013 12:33:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">135269@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@popsantiago, you're doing good so far but your request is outside the support we can provide for Gravity Forms.  Your customization is fairly complex and if you're new to PHP and Gravity Forms, you might want to look for assistance on our job board.  Or, just keep going.  I suspect you'll get it soon.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/forum/job-board&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/forum/job-board&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>popsantiago on "GF and ACF"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gf-and-acf#post-134145</link>
			<pubDate>Mon, 28 Jan 2013 14:10:43 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">134145@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I created a complete Custom Post Admin with &#60;a href=&#34;http://www.advancedcustomfields.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.advancedcustomfields.com/&#60;/a&#62;&#60;br /&#62;
I just give some fields for a simple example :&#60;br /&#62;
My collecttion CPT is composed by :&#60;br /&#62;
## Title (WP default CPT title)&#60;br /&#62;
## ACF Description name &#34;description_collections&#34;&#60;br /&#62;
## ACF Taxonomy Fieds name &#34;genre_collections&#34;&#60;br /&#62;
## ACF Gallery Fields (add-on $) name &#34;image_collections&#34;&#60;/p&#62;
&#60;p&#62;Now GF, i used :&#60;br /&#62;
## Gravity Forms + Custom Post Types add-on to put form in the CPT Collection (That's work)&#60;br /&#62;
## Article Post Title to put the Title of my CPT Collection (i use the title wp field default, so that's work)&#60;br /&#62;
## Custom Field Post (textarea) to submit my description (that's work too)&#60;br /&#62;
Problems come now...&#60;br /&#62;
------&#60;br /&#62;
## For the taxonomy, i used Standard field CheckBoxes with advanced &#34;Populate with a Taxonomy&#34; with my custom taxonomy...&#60;br /&#62;
- work for the WP taxonomy, i can see in admin edit collection the tax&#60;br /&#62;
- not work for my custom ACF field because i can't set the value of the custom field with the GF checkboxen tool&#60;br /&#62;
## For the gallery, i used the Image Field of GF Article post...&#60;br /&#62;
- work for the WP image, i can see all images link with this post submitted&#60;br /&#62;
- not work for my custom ACF field...&#60;/p&#62;
&#60;p&#62;I think i can fix this problem, but not alone, because i'm really new be on php and GF custom function.&#60;/p&#62;
&#60;p&#62;I use the var_dump function to see what was the waiting values of the ACF fields, so :&#60;br /&#62;
## ACF taxonomy field seems waiting an array :&#60;br /&#62;
get_post_meta($post-&#38;gt;ID, 'genre_collections', true)&#60;br /&#62;
===&#38;gt; array(2) { [0]=&#38;gt; string(1) &#34;3&#34; [1]=&#38;gt; string(2) &#34;15&#34; }&#60;br /&#62;
===&#38;gt; array(2) { [0]=&#38;gt; string(1) &#34;TAX_ID_1&#34; [1]=&#38;gt; string(2) &#34;TAX_ID_2&#34; }&#60;/p&#62;
&#60;p&#62;## ACF Gallerie field seems waiting an array too :&#60;br /&#62;
get_post_meta($post-&#38;gt;ID, 'image_collections', true)&#60;br /&#62;
===&#38;gt; array(6) { [0]=&#38;gt; string(2) &#34;60&#34; [1]=&#38;gt; string(2) &#34;57&#34; [2]=&#38;gt; string(2) &#34;58&#34; [3]=&#38;gt; string(2) &#34;59&#34; [4]=&#38;gt; string(2) &#34;61&#34; [5]=&#38;gt; string(2) &#34;62&#34; }&#60;br /&#62;
===&#38;gt; array(6) { [0]=&#38;gt; string(2) &#34;ATTACHEMENT_POST_ID_1&#34; [1]=&#38;gt; string(2) &#34;ATTACHEMENT_POST_ID_2&#34; [2]=&#38;gt; etc......&#60;/p&#62;
&#60;p&#62;So if i understood your documentation i need to use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#60;/a&#62; to transform the GF_Fields in array and store in database ?&#60;/p&#62;
&#60;p&#62;Am i on the right way ? And can you help me to do the function, because i think there are some loop and count... It's hard for me to play with that...&#60;br /&#62;
My head work well but not my php =)&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
