I have been using this wordpress plugin to run php code on posts and pages in wordpress. http://www.hitreach.co.uk/wordpress-plugins/allow-php-in-posts-and-pages/
Right now i am trying to run codeigniter code on posts and pages,has anyone tried this?