WordPress.org

Ready to get started?Download WordPress

Forums

Can't add php script in page editor (4 posts)

  1. nliteagent
    Member
    Posted 6 years ago #

    How do you add a php code snippet to the html of a page? Everytime I click on "edit HTML" the new window pops up with the HTML code and I insert my php code. However, after saving, it deletes all the php. Is there something I'm missing?

  2. mrmist
    Forum Janitor
    Posted 6 years ago #

    Yes, you need to download a plugin to write PHP code in the editor. Vanilla wordpress doesn't let you do it.

  3. nliteagent
    Member
    Posted 6 years ago #

    do you know what the plugin is called?

  4. mrmist
    Forum Janitor
    Posted 6 years ago #

    Something like phpexec - there's more than one I think.

    Just search in the plugins area for PHP, I'm sure one will come up.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags