I need add to the excerpt field the TinyMCE Advanced editor, any ideas?
I have the qTranslate plugin (multilanguage), and it’s impossible to connect teh excerpt with this plugin and an editor.
Thanks
I need add to the excerpt field the TinyMCE Advanced editor, any ideas?
I have the qTranslate plugin (multilanguage), and it’s impossible to connect teh excerpt with this plugin and an editor.
Thanks
You must be logged in to post a comment.
Just replace the default output. Make sure you unescape the excerpt before you send it to the editor:
Save this code in a plugin or in your themeâs
functions.php
.A simple way is to use the plugin Rich Text Excerpt
The Plugin uses the wp_editor function to generate a rich text editor for page/post excerpts, so will only work in WordPress 3.3 or greater.
you may need to use
wp_editor
function to get rich editor, then you should remove any sanitize functions withget_post_meta
(orupdate_post_meta
), then you should usehtmlspecialchars_decode
function to get the rich content..look through this principle:
Follow solution add excerpt wysiwyg editor right after post title.
Add follow class to your WordPress project as
excerpt.php
Then add to
functions.php
file follow lines: