- This topic has 3 replies, 2 voices, and was last updated 6 years, 8 months ago by
Steve.
Viewing 3 reply threads
-
AuthorPosts
-
-
May 20, 2015 at 4:31 pm #3726
mcmasterMemberFrom the answer at https://piklist.com/support/topic/editor-field-not-saving-data/ I got the impression that I could override the WordPress textarea meta box for post excerpts with a Piklist editor meta box.
Here’s my metabox file:
<?php /* Title: WYSIWYG Post Type: post Description: enables TinyMCE editor for excerpts Priority: high */ piklist('field', array( 'type' => 'editor' ,'scope' => 'post' ,'field' => 'post_excerpt' ,'label' => 'Excerpt' ,'options' => array ( 'media_buttons' => false ,'teeny' => true ) ));Unfortunately it doesn’t change the Excerpt box. I tried removing post type support for excerpts in hopes that would remove the WP box … which it does. But it also evidently prevents Piklist from creating its box.
add_action( 'init', 'remove_post_excerpt' ); function remove_post_excerpt () { remove_post_type_support( 'post', 'excerpt' ); }Suggestions? Thanks!
p.s. tried this on 0.9.4.26 and on beta 0.9.5v
-
May 20, 2015 at 7:21 pm #3727
mcmasterMemberFirefox hung, so I restarted it. And now the excerpt is showing up as WYSIWYG. Go figure!
-
May 21, 2015 at 9:15 am #3730
-
May 22, 2015 at 11:23 am #3733
SteveKeymasterThis was such a good idea we added it to our WordPress Helpers plugin! Thanks.
-
-
AuthorPosts
Viewing 3 reply threads
- The topic ‘WYSIWYG post excerpts?’ is closed to new replies.