I get an syntax error, unexpected T_STRING in this function on the 2nd line:
function format_date($unixtime) {
return date(“F”, $unixtime).” “.date(“d”, $unixtime).”, “.date(“Y”, $unixtime);
}
I’m following this tutorial http://tatiyants.com/how-to-use-wordpress-custom-post-types-to-add-events-to-your-site/
I’ve followed this to the letter and did nothing more than copy and paste so far.
In the comments you can read that the function above is missing and the author says to include it anyware in the php file. This seems to solve it for everybody except one other person and me.
So maybe the problem is related with the version of PHP or MySQL? Although Netbeans also says there is a syntax error in the code above.
It’s because you copied and pasted from a badly written blog post and you have invalid curly quotes in your code. Change them to single or double-quotes: