[resolved] php left tag broken (2 posts)

  1. mondele
    Posted 10 years ago #

    On my new wordpress site when I try to insert some php code (template tag, what have you) somewhere between the submitting of the post and the display of the post a space is inserted between the < and the ?. This breaks the tag, and the text of the tag is shown instead of its effect. Using Safari 2 and Firefox, with wordpress installed on a Raq linux system and on Mac OS X 10.4 (Tiger).

    An example would be <?php the_ID(); ?> turns into
    < ?php the_ID(); ?>

  2. moshu
    Posted 10 years ago #

    You cannot use php code in the content of the posts (or Pages).
    Whatever PHP you want to put in, you should work in the template files.

Topic Closed

This topic has been closed to new replies.

About this Topic