WordPress.org

Ready to get started?Download WordPress

Forums

php inside a post? (5 posts)

  1. amirs
    Member
    Posted 8 years ago #

    Hi. I'd like to use a php 'include' inside the body of my post. So for example, I'd like to say:

    <?php include('file.php') ?>

    inside my post. But when I try doing this, WP immediately changes the <?php to <? php, invalidating it as php code...and it the only thing that shows up in the post body is this:

    <? php include('file.php') ?>

    Is there a way to accomplish what I want (i.e. use php statements within a post body)?

    Thanks,
    Amir

  2. moshu
    Member
    Posted 8 years ago #

    Search for runPHP and PHPexe

  3. Beel
    Member
    Posted 8 years ago #

    Surprised that you did not also come up with QuickPHP during your initial searching of the forum.

  4. Ryan Duff
    Member
    Posted 8 years ago #

    I think moshu was refering to wp-exec by Navid Azimi

  5. moshu
    Member
    Posted 8 years ago #

    Hah, failing memory (getting older :)
    it's PHP Exec I was thinking of
    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