- This topic has 6 replies, 3 voices, and was last updated 6 months, 2 weeks ago by .
We’re also trying to do much the same thing as referenced in:
We need to use select_advanced as we are sourcing data from a custom table rather than a custom post type. We have the ajax side of things working perfectly, the issue is that the field is not being saved to the database.
If we edit the post.php file to print out all the posted data we can see that our custom field data is being posted it’s just not being saved to the database. I’d really appreciate your help on this as we have spent the last 4 hours trying to debug this but to not avail…
array( 'name' => __('Special Offer Product'), 'id' => 'offer_product_codes', 'type' => 'select_advanced', 'options' => indigo_get_selected_post(), 'js_options' => array ( 'ajax' => array( 'url' => '/wp-admin/admin-ajax.php?action=ajax_get_products', 'dataType' => 'json', 'type' => 'get', 'delay' => '250', ), 'minimumInputLength' => 3, 'allowClear' => true, 'placeholder' => 'Choose product' ), 'columns' => '4', ),
This is what get’s (correctly)posted when you ‘update’ the post:
[offer_product_codes] => THEREG
It just doesn’t end up on the _postmeta table and I can’t figure out why…
- You must be logged in to reply to this topic.