Error. unexpected &?
-
I am trying to insert this bit of code (between the plugin’s short code) and getting an error message:
date_default_timezone_set(‘America/New_York’);
$date = new DateTime();
$date->sub(new DateInterval(‘P1D’));
echo $date->format(‘j F Y’);and getting this error:
syntax error, unexpected ‘&’ in /[MY-PATH]/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 1
It works outside of WordPress, but not within. Any help would be appreciated. Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error. unexpected &?’ is closed to new replies.