Hi there,
I just wrote a blog entry about a php script, and in word press when I used
<?PHP
It failed to output in the blog, when I look at the html it comes out like
<!--P<br-->
instead of
<?PHP as it should.
Hi there,
I just wrote a blog entry about a php script, and in word press when I used
<?PHP
It failed to output in the blog, when I look at the html it comes out like
<!--P<br-->
instead of
<?PHP as it should.
Any solution?
Are you expecting to run some PHP code, or are you just trying to display it?
For the former, there are several plugins available that allow you to embed PHP in a post:
http://codex.wordpress.org/Plugins/Posts_Formatting
For the latter, you should be using character entities for the open and close brackets:
< = <
> = >
Or (again!) take a look at the plugins that deal with formatting code in a post:
Did you try using the code tags around your PHP code?
This topic has been closed to new replies.