I tried to make it simple, my code only has this:
[insert_php]
if ($a > $b) {echo “works”;}
[/insert_php]
same error.
Hello Will, thanks for the reply.
1. I’m using the text tab, after I save it “converts” the > to “& gt;”
2. I made some tests, if I have only the code until line 9, there’s no error. When I put that line, it happens.
3. You’re right, the “…” there’s code inside. I tried to escape the > and < with other plugin, with esc_html() wordpress’ function, [ and ], nothing works… every character I try to put there, become the error instead of the “;”.
I’d tested the code on an external PHP file direct on browser and it works. The only “;” in there is the “& gt;”.
There’s some other way to escape/replace those characters?
Thanks again!