Hi,
I created a complete Custom Post Admin with http://www.advancedcustomfields.com/
I just give some fields for a simple example :
My collecttion CPT is composed by :
## Title (WP default CPT title)
## ACF Description name "description_collections"
## ACF Taxonomy Fieds name "genre_collections"
## ACF Gallery Fields (add-on $) name "image_collections"
Now GF, i used :
## Gravity Forms + Custom Post Types add-on to put form in the CPT Collection (That's work)
## Article Post Title to put the Title of my CPT Collection (i use the title wp field default, so that's work)
## Custom Field Post (textarea) to submit my description (that's work too)
Problems come now...
------
## For the taxonomy, i used Standard field CheckBoxes with advanced "Populate with a Taxonomy" with my custom taxonomy...
- work for the WP taxonomy, i can see in admin edit collection the tax
- not work for my custom ACF field because i can't set the value of the custom field with the GF checkboxen tool
## For the gallery, i used the Image Field of GF Article post...
- work for the WP image, i can see all images link with this post submitted
- not work for my custom ACF field...
I think i can fix this problem, but not alone, because i'm really new be on php and GF custom function.
I use the var_dump function to see what was the waiting values of the ACF fields, so :
## ACF taxonomy field seems waiting an array :
get_post_meta($post->ID, 'genre_collections', true)
===> array(2) { [0]=> string(1) "3" [1]=> string(2) "15" }
===> array(2) { [0]=> string(1) "TAX_ID_1" [1]=> string(2) "TAX_ID_2" }
## ACF Gallerie field seems waiting an array too :
get_post_meta($post->ID, 'image_collections', true)
===> array(6) { [0]=> string(2) "60" [1]=> string(2) "57" [2]=> string(2) "58" [3]=> string(2) "59" [4]=> string(2) "61" [5]=> string(2) "62" }
===> array(6) { [0]=> string(2) "ATTACHEMENT_POST_ID_1" [1]=> string(2) "ATTACHEMENT_POST_ID_2" [2]=> etc......
So if i understood your documentation i need to use the http://www.gravityhelp.com/documentation/page/Gform_pre_submission to transform the GF_Fields in array and store in database ?
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...
My head work well but not my php =)
Thank you