I found a simple plugin for WordPress called Exec Plugin from Priyadi’s Place. It will allow you to add dynamic php to your posts. Download the .txt file. Change the extension to .php and upload it to your wp-content/plugins dir. Use the Word plugin manager to activate it and off you go.

To use php in your posts just use the tags <phpcode> and </phpcode>. Then code away inside of there as if it were your favorite text editor. eg:
[code lang=”php”]

< ?php
$var = ‘hello world’;

print("$var");

if($var){
include("somefile.php" /* or ANY php parsable file extension*/);
}
?>

[/code]

Pretty simple! I used it to include() an index page of links for my hurricane chronicles.

Exec Plugin

Technorati Tags: , , , , ,


Post A Comment