WordPress doesn't seem to convert < and > (4 posts)

  1. Wildzero
    Posted 9 years ago #

    Hi there,

    I just wrote a blog entry about a php script, and in word press when I used


    It failed to output in the blog, when I look at the html it comes out like
    instead of
    <?PHP as it should.

  2. Wildzero
    Posted 9 years ago #

    Any solution?

  3. Kafkaesqui

    Posted 9 years ago #

    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:


    For the latter, you should be using character entities for the open and close brackets:

    &lt; = <
    &gt; = >

    Or (again!) take a look at the plugins that deal with formatting code in a post:


  4. Did you try using the code tags around your PHP code?

Topic Closed

This topic has been closed to new replies.

About this Topic