user12920
user12920

Reputation: 301

Whats wrong with this line of PHP code?

Parse error: syntax error, unexpected 'Pre' (T_STRING), expecting ',' or ';' in your code on line 719

719: if (get_the_author_meta('Pre-Rolls') != '0') { echo get_the_author_meta('Pre-Rolls'); }

I dont see where I'm missing a , or ;?

Does it not like the "-" in Pre-Rolls? Is that the problem?

Upvotes: 0

Views: 50

Answers (1)

Nathan Dawson
Nathan Dawson

Reputation: 19318

It's an issue with code that comes before this line. Unexpected 'Pre' suggests that you haven't closed a string (missing single quote).

Upvotes: 2

Related Questions