Open ivandoric opened 10 years ago
Ok this plugin definitely just outputs the code. If I write this in the editor:
add_action('acf/register_fields', 'my_register_fields');
function my_register_fields() { include_once('acf_code_area-field/acf_code_area-v3.php'); }
It throws an error:
Fatal error: Cannot redeclare my_register_fields() (previously declared in ... which you would expect if you try to redeclare plugin function.
Wordpress 3.9.1 ACF - 4.3.8
When using CSS, doesn't output anything.
When using PHP throws eval error if the code is not evaluated properly, and if it is evaluated properly it doesn't output anything.
When using HTML it outputs that HTML on page. Doesn't show the code. It just becomes part of the page.
Didn't try JS.
Am I missing something here. I tried it on my custom theme, and on twentytwelve, same errors on both of them.
Should I wrap the_field('code_area_field'); in something?