May 11, 2014 at 6:43 am #1706
I use the editor field in a CPT. When I fill in this field and Publish or Update my post, nothing seems to be saved in the DB.
This is my code for the editor field:
piklist( 'field', array( 'type' => 'editor', 'scope' => 'post', 'field' => 'biography', 'label' => 'Biography', 'value' => 'Write the speaker\'s biography here ....', 'options' => array ( 'wpautop' => true ,'media_buttons' => false ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => false ,'quicktags' => false ), ) );
The other fields are saved.
Someone else has the same problem?
May 12, 2014 at 9:36 am #1707
Maybe I’m wrong, but if the scope is post I believe the field has to be a column available to the wp_posts table (e.g. content, excerpt, etc.). Otherwise, if you omit the scope parameter (or use ‘post_meta’), it should save just fine to the wp_postmeta table.
May 12, 2014 at 10:10 am #1708
May 12, 2014 at 4:08 pm #1709
Effectively, with scope=’post_meta’, works like a charm now 🙂
Thx both of you.
You must be logged in to reply to this topic.