{"id":782,"date":"2012-06-05T14:21:28","date_gmt":"2012-06-05T14:21:28","guid":{"rendered":"https:\/\/theextremewebdesigns.com\/blog\/?p=782"},"modified":"2012-06-05T14:21:28","modified_gmt":"2012-06-05T14:21:28","slug":"wordpress-add-tinymce-to-textarea","status":"publish","type":"post","link":"https:\/\/theextremewebdesigns.com\/blog\/wordpress-add-tinymce-to-textarea\/","title":{"rendered":"WordPress: Add TinyMCE to Textarea"},"content":{"rendered":"<p><strong>WordPress: Add TinyMCE to Textarea:<\/strong> Whether you are adding\u00a0custom fields for your theme or building a plugin and would like to convert a textarea to use\u00a0WordPress HTML\/Visual editor, you can easily achieve this using just 1 line of code.<!--more--><\/p>\n<h2>WordPress: Add TinyMCE to Textarea<\/h2>\n<pre class=\"lang:php decode:true\">&lt;?php wp_editor( $content, $editor_id, $settings = array() ); ?&gt;<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"lang:php decode:true\">&lt;?php wp_editor( $ewd_skills, 'ewd_skills_description' ); ?&gt;<\/pre>\n<p>That above example will output a text area with the name &#8216;ewd_skills_description&#8217; and the value of the custom field.<\/p>\n<h3>Where to add the above code:<\/h3>\n<p>Add the above code in functions.php file of your theme &amp; save it.<\/p>\n<p><strong>Simple, isn&#8217;t it?<\/strong><\/p>\n<p>Do you know of any other ways to <strong>add TinyMCE to Textarea in WordPress<\/strong>? Feel free to suggest by commenting below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress: Add TinyMCE to Textarea: Whether you are adding\u00a0custom fields for your theme or building a plugin and would like to convert a textarea to use\u00a0WordPress HTML\/Visual editor, you can easily achieve this using just 1 line of code.<\/p>\n","protected":false},"author":1,"featured_media":114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13,11],"tags":[30],"class_list":["post-782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-and-tricks","category-wordpress-tips-and-tricks","tag-wordpress-tips"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paBnQX-cC","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":0,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}