Tagged: editor
- This topic has 3 replies, 3 voices, and was last updated 7 years, 9 months ago by
kattagami.
Viewing 3 reply threads
-
AuthorPosts
-
-
May 11, 2014 at 6:43 am #1706
kattagamiMemberHello,
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
JasonKeymasterMaybe 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
kattagamiMemberEffectively, with scope=’post_meta’, works like a charm now 🙂
Thx both of you.
-
-
AuthorPosts
Viewing 3 reply threads
- You must be logged in to reply to this topic.