{"id":23805,"date":"2013-06-20T15:22:15","date_gmt":"2013-06-20T15:22:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/advanced-custom-fields-code-area-field\/"},"modified":"2014-04-23T14:47:35","modified_gmt":"2014-04-23T14:47:35","slug":"advanced-custom-fields-code-area-field","status":"publish","type":"plugin","link":"https:\/\/sa.wordpress.org\/plugins\/advanced-custom-fields-code-area-field\/","author":12117621,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.1","tested":"3.5.2","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields: Code Area","header_author":"Taylor Mitchell-St.Joseph","header_description":"","assets_banners_color":"212121","last_updated":"2014-04-23 14:47:35","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/taylormsj\/","header_plugin_uri":"https:\/\/github.com\/taylormsj\/acf-code_area-field","header_author_uri":"https:\/\/github.com\/taylormsj\/","rating":3.8,"author_block_rating":0,"active_installs":400,"downloads":110013,"num_ratings":10,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":3,"2":0,"3":0,"4":0,"5":7},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"728922","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"728919","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"728919","resolution":"2","location":"assets"}},"screenshots":{"1":"Code Area field options","2":"Editing a Code Area field"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2217,1214],"plugin_category":[59],"plugin_contributors":[79580],"plugin_business_model":[],"class_list":["post-23805","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-advanced-custom-fields","plugin_tags-code","plugin_category-utilities-and-tools","plugin_contributors-taylormitchellstjoseph","plugin_committers-taylormitchellstjoseph"],"banners":{"banner":"https:\/\/ps.w.org\/advanced-custom-fields-code-area-field\/assets\/banner-772x250.png?rev=728922","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/advanced-custom-fields-code-area-field_212121.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/advanced-custom-fields-code-area-field\/assets\/screenshot-1.jpg?rev=728919","caption":"Code Area field options"},{"src":"https:\/\/ps.w.org\/advanced-custom-fields-code-area-field\/assets\/screenshot-2.jpg?rev=728919","caption":"Editing a Code Area field"}],"raw_content":"<!--section=description-->\n<p>The 'Code Area' field allows you to add custom CSS, Javascript, HTML and PHP to an advanced custom field, whcih can be use anywhere in your wordpress template files.<\/p>\n\n<p>The code area uses <a href=\"http:\/\/codemirror.net\">Code Mirror<\/a> and has various themes to suit.<\/p>\n\n<p><strong>CSS<\/strong>\nType your css, no  tags needed<\/p>\n\n<p><strong>Javascript<\/strong>\nType your Javascript, no  tags needed<\/p>\n\n<p><strong>PHP<\/strong>\nType your PHP, no  tags needed (Note, you can not open and close php tags anywhere in your code)<\/p>\n\n<p>Output all types of code in the usual fashion the_field('code_area_field');<\/p>\n\n<p><strong>Compatible with both ACF V3 &amp; V4<\/strong><\/p>\n\n<!--section=installation-->\n<p>This add-on can be treated as both a WP plugin and a theme include.<\/p>\n\n<p><strong>Install as Plugin<\/strong>\nCopy the 'acf-code_area' folder into your plugins folder\nActivate the plugin via the Plugins admin page<\/p>\n\n<p><strong>Include within theme<\/strong>\nCopy the 'acf-code_area' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory\nEdit your functions.php file and add the code below (Make sure the path is correct to include the acf-cf7.php file)<\/p>\n\n<pre><code>add_action('acf\/register_fields', 'my_register_fields');\n\nfunction my_register_fields()\n{\n    include_once('acf_code_area-field\/acf_code_area-v3.php');\n}\n<\/code><\/pre>","raw_excerpt":"Adds a &#039;Code Area&#039; textarea editor field type for the Advanced Custom Fields WordPress plugin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23805"}],"author":[{"embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/taylormitchellstjoseph"}],"wp:attachment":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23805"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23805"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23805"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23805"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23805"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}