Is there a way to add a TinyMCE editor to the taxonomy description field on the term editing pages? The solution here (Can you add the visual editor to the description field for custom taxonomies?) no longer works, I think because the wp_tiny_mce function has been deprecated.


You can use a {$taxonomy}_edit_form_fields action hook to add html to the term edit table. In that HTML you can remove description textarea and add tinymce editor

add_action("{$taxonomy}_edit_form_fields", 'add_form_fields_example', 10, 2);

function add_form_fields_example($term, $taxonomy){
    <tr valign="top">
        <th scope="row">Description</th>
            <?php wp_editor(html_entity_decode($term->description), 'description', array('media_buttons' => false)); ?>
  • Oleg, I'll try this first thing in the morning. – Josh M Jun 8 '15 at 18:57
  • About to test. By the way, you have a typo on line 3, "function." :) – Josh M Jun 8 '15 at 20:03
  • I am really sorry about that. Thanks userabuser for fixing my typo. (I was about to go home yesterday due a terrible headache when I deside to post response on 'one more' question here.) – Butuzov Jun 9 '15 at 7:17
  • I get "Undefined variable: taxonomy". How does this work? I put it in functions.php – Jordan Carter Aug 14 '17 at 18:32
  • I've tried the code and it's working, but the thing is I don't know to apply it to my issue: wordpress.stackexchange.com/questions/318814/… – leonardeveloper Nov 10 '18 at 5:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.