WordPress.org

Ready to get started?Download WordPress

Forums

PHP in WP-Pages - How do I do this? (2 posts)

  1. elyonline
    Member
    Posted 8 years ago #

    Hi there,

    I have created a page in WP2.02 and wanted to add this: < ?php ec2_get_events(100,'l F jS'); ?> but when I create the page it only shows that code and not what is generated by the PHP. How do I add this code to render?

    Thanks a lot
    K

  2. MichaelH
    Member
    Posted 8 years ago #

    Possibilities:

    RunPHP Plugin
    http://www.nosq.com/2004/10/runphp-wordpress-plugin/
    Don't forget to check the "run PHP code?" box on the Write Post and Write Page area.

    CG-QuickPHP
    http://www.chait.net/index.php?p=310
    QuickPHP is really targeted for single function calls or include statements (it does one 'method', with a parenthesized parameter list), constant arguments. But including a php script is then really easy, or calling a function (like any basic WP func..).

    The author, David Chait, uses it for embedding things like CG-FeedRead feeds, or wacky CG-Amazon stuff (since CG-Inline already has an amazon tag).

    PHPExec Plugin
    http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.