TinyMCE to guest author bio
-
I needed tinyMCE to appear in the bio area of the guest authors for a more robust bio so I commented out line 655 of \wp-content\plugins\co-authors-plus\php\class-coauthors-guest-authors.php which looked like this:
echo '<textarea style="width:300px;margin-bottom:6px;" name="' . esc_attr( $pm_key ) . '">' . esc_textarea( $value ) . '</textarea>';
and added this:
$settings = array('wpautop' => true, 'media_buttons' => true, 'quicktags' => true, 'textarea_rows' => '15', 'textarea_name' => esc_attr( $pm_key ) ); wp_editor(wp_kses_post(esc_textarea( $value ) , ENT_QUOTES, 'UTF-8'), esc_attr( $pm_key ) , $settings);
Many thanks for a very useful plugin!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘TinyMCE to guest author bio’ is closed to new replies.