WordPress.org

Ready to get started?Download WordPress

Forums

How to add a PHP script to wordpress (3 posts)

  1. Remataklan
    Member
    Posted 6 years ago #

    I have a PHP program. I want to be able to run this program inside a wordpress page. How to do it? Does it have to be in the form of a template or plugin?

    Is it enough to turn the program to a template and insert it as a new page?

    Will the page handle $_GET and $_POSTs correctly?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    How you do it largely depends on what, exactly, it does.

    Template pages can indeed see GET and POST variables, but you have to be careful about which variables, because WordPress itself uses lots of variables too.

  3. jpadie
    Member
    Posted 6 years ago #

    try the exec-php plugin

Topic Closed

This topic has been closed to new replies.

About this Topic