WordPress.org

Ready to get started?Download WordPress

Forums

Using php on page? (5 posts)

  1. Alekz
    Member
    Posted 9 years ago #

    Hiya,
    I made a page with so called 'random wisdom' but i can't seem to get any random tekst script working on that page.
    If i use the scripts in the sidebar or something, it does work.
    So how do i get javascript or preferabbely php working in custom pages?
    I downloaded the Witty Text plugin, but i cant seem to get in working on the page..

  2. Michael Bishop

    Posted 9 years ago #

    to get php to work in a Page, you either need to hardcode the php in, or grab one of the plugins that allow the php to be used within the html.

  3. Alekz
    Member
    Posted 9 years ago #

    do you know where i can find such a plugin cuz i searched my brains out...

  4. Michael Bishop

    Posted 9 years ago #

    PHP Exec is the one I use.
    There's also a Run Run PHP plugin, which I haven't used.

  5. davidchait
    Member
    Posted 9 years ago #

    or if you just need to call one function, there's CG-QuickPHP.

    If you want to do complex stuff, you can either use phpexec/runphp, or just create a custom page template, assign the page that template, and then do completely custom code within the template file. Much easier if you have very complex stuff.

    -d
    CHAITGEAR

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags