Form select input to CPT type
-
Hello,
I have a question regarding the following:
I’m using Gravity Forms + the add on “Gravity Forms + Custom Post Types”.Now I have a few forms which entries I automatically want to place as a custom post type. So far all good because this is generally working ok!
In one form there is a select input which the user can choose from. Unfortunately the select input won’t work correctly into a CPT because of the following:
Gravity forms will save the select input as follows (repeating field) in the table “wp_rg_lead_detail:
field_number = 9.1
value = first value
field_number = 9.2
value = second value
field_number = 9.3
value = third valueCustom post types will save the select input as follows (serialize array):
meta_value = a:3:{i:0;s:29:”first value”;i:1;s:24:”second value”;i:2;s:8:”third value”;}How (or what is the best way) to save the Gravity Forms select input so that the wp_postmeta can handle the input?
- The topic ‘Form select input to CPT type’ is closed to new replies.