• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    try the exec-php plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a PHP script to wordpress’ is closed to new replies.