• I want to put PHP code on a new page that I want to create in the WP-Admin
    (so new page and put like time(); on it or something…

    Is that possible ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • typey

    (@typey)

    I think so. As long as the page you create has the extension .php (and not .html), your server will parse it for PHP code. Is that what you’re asking?

    Minna

    (@minna)

    As you can’t use PHP on posts, you can’t use them on pages (as far as I know) — by default. You’d need one of the plugins that allow that (RunPHP is what I use and it works well for simple tags. At some point at least it couldn’t understand & signs between parameters so I have to use the comma separated versions of different templage tags — then again, I haven’t checked for updates in a long while). There are of course other plugins, too.

    Thread Starter Noemi Nozze

    (@mcmike)

    Hmmzzz that sucks.. basicly what I want to do is build a plugin that loads a new page within WP but it needs offcourse to be
    1) for dummies
    2) easy to create with out much hassle

    So I thought maybe there is an easy way for it…. seems to me I need to think of something creative to solve this problem….. *sigh* Maybe I can use some command in “the-loop” for it to break the loop and load my stuff….

    That I reckon would be one of the easiest things to do…

    Moderator James Huff

    (@macmanx)

    If RunPHP won’t work for you, PHP Exec is another option.
    http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

    Thread Starter Noemi Nozze

    (@mcmike)

    Well I basicly want to make a “stand-alone” plugin not relyable on other plugins (wich basicly means I have to add RunPHP in my script 🙂 but well if there aint any other way 🙂

    Thread Starter Noemi Nozze

    (@mcmike)

    it works great by the way with RunPHP

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP/PHP Questions’ is closed to new replies.