Forums

[resolved] Php disappears when editing (4 posts)

  1. bowoolley
    Member
    Posted 4 years ago #

    Hi - I'm using the wp-quotes plugin to put random quotes on my start page. When I insert the php quote into the ("static") page, and click save, it works just fine. When I go back to edit the page, however, the php has disappeared. This has happened other times when I've typed in php commands as well. What am I doing wrong, please??

  2. bowoolley
    Member
    Posted 4 years ago #

    Just found out that this only happens when using the visual editor. I have unchecked "use visual editor" in the user's interface, and things seem to be ok. But I'm afraid that if I inadvertently go to the visual editor to check something out before publishing, the code will disappear again. Is there a fix??

  3. bowoolley
    Member
    Posted 4 years ago #

    OK, not resolved really, but I'm using BBEdit to edit the file directly from the server. Problem not resolved in the absolute sense, but I'm closing the question (no replies anyway!!)

  4. moshu
    Member
    Posted 4 years ago #

    You can NOT use php code in the content of a Page or post.

Topic Closed

This topic has been closed to new replies.

About this Topic