WordPress.org

Ready to get started?Download WordPress

Forums

Php and Wp page... (4 posts)

  1. Hoshi
    Member
    Posted 8 years ago #

    I try to get a php script in my wp page,but... it dont' work!! This 's possible or not?? Thanks!! :)

  2. Lorelle
    Member
    Posted 8 years ago #

    No, it is not possible, if you are talking about putting it in your post. You can put PHP in your template files, but then it will run on EVERY page that uses that template file.

    To "force" php to run, but not all php commands or script, you can use:

    RunPHP http://www.nosq.com/2004/10/runphp-wordpress-plugin/
    PHP-Exec http://www.navidazimi.com/projects/wp-exec/

  3. Hoshi
    Member
    Posted 8 years ago #

    Thanks Lorelle!!!! :)

  4. Kafkaesqui

    Posted 8 years ago #

    "You can put PHP in your template files, but then it will run on EVERY page that uses that template file."

    There are ways around that, Lorelle, such as for Pages:

    is_page('about')

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags