Forums

Show PHP Code and Tags in Article? (5 posts)

  1. Anonymous
    Unregistered
    Posted 7 years ago #

    How do I write PHP code with the opening and closing PHP tags in the article textarea during editing so that the it displays properly with tags in the published article? I don't want the PHP code to execute, I just want to show it unaltered in the article so that it stands out from the surrounding text. WordPress inserts a space before the question mark in the opening PHP tag. It sometimes also shortens filenames surrounded by tags, and it adds an extra tag (less-than, forward slash, space, greater than) before the tag.

  2. Anonymous
    Unregistered
    Posted 7 years ago #

    The last sentence in the first post should end "before the closing code tag."

  3. midori
    Member
    Posted 7 years ago #

  4. Mark (podz)
    Support Maven
    Posted 7 years ago #

  5. webdevguy
    Member
    Posted 7 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.