Add Rich / TinyMCE Editor to Custom Field in WordPress

By using wp_add_metabox you’ll be able add custom field to post, page, or custom post type. But there’s a case; how to add WordPress’ TinyMCE into a custom field?

The main key is by adding wp_editor function.

You can read complete description of the function at the codex.

We are going through fast lane how to implement wp_editor. Take a look at the code below:

Above code is a simple example to display a custom field with TinyMCE editor. You can paste the code into your functions.php to see how it works.

description-tinyMCE

How To, PHP, Wordpress, ,

Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.