Running WP 4.4.1, have a basic text block on my page (using Visual Composer Framework)
Your sample code works:
[insert_php]
echo ‘Server date and time is: ‘;
echo date(‘l, F j, Y \a\t G:i:s’);
[/insert_php]
But anything else like a simple:
[insert_php]
if (1 < 2) {echo 1;} else {echo 2;}
[/insert_php]
breaks and gives the following error:
Parse error: syntax error, unexpected ‘}’, expecting ‘,’ or ‘;’ in /home/newmd2/public_html/hudsonwellness.nyc/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
Thoughts?