Support » Fixing WordPress » update_post_meta using Jeditable
3 years, 5 months ago
I’m trying to allow users to edit a <div> using Jeditable.
I’m simply running into trouble with my save script. I would like to simply update a custom field (the only element in the editable div).
In my save script, I know I should be using update_post_meta but I’m having some issues getting it to work. Are there other variables I need to set up before calling update_post_meta?
Save script is currently a simple:
$text = $_POST['editext'];
$text = update_post_meta( $post->ID, '_cmb_editext_textarea' );