WordPress.org

Forums

Co-Authors Plus
TinyMCE to guest author bio (2 posts)

  1. tcdahlberg
    Member
    Posted 1 year ago #

    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!

    https://wordpress.org/plugins/co-authors-plus/

  2. brunswickmedia
    Member
    Posted 3 months ago #

    You are my favorite person on the internet right now. Thanks for this!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic