Wordpress Page via PHP

4 replies
  • |
I have a PHP Code I would like to run in a page using Wordpress. I tried the plugins that said it would run the code but I am having no luck.

Can someone please help with a link to a wordpress plugin that I can use to run a PHP code on a wordpress page.

Thank you!

#page #php #wordpress
  • {{ DiscussionBoard.errors[8305085].message }}
    • Profile picture of the author Boomland Jenkins
      Originally Posted by mojojuju View Post

      I've been using Execute PHP for a few years, hasn't failed me much.

      Just so you know, WordPress will break your scripts sometimes, by adding extra paragraph tags or other odd behavior.

      If you have advanced code going on, make a page template in your theme with the standard page loop, but include the necessary PHP code in there too.
      {{ DiscussionBoard.errors[8305915].message }}
  • Profile picture of the author cyperpc
    I will give it shot, thank you very much!
    {{ DiscussionBoard.errors[8307614].message }}
  • Profile picture of the author cyperpc
    Well it did not work,,, this is the code I am using it is from GoldenCan dot com

    I am not a programmer per say

    $IPAddress = urlencode($_SERVER['REMOTE_ADDR']);
    $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']);
    $URL = $URL.'&PageURL='.$PageURL;
    $URL = $URL.'&IPAddress='.$IPAddress;
    $URL = $URL.'&UserAgent='.$UserAgent;
    {{ DiscussionBoard.errors[8307642].message }}

Trending Topics