How to Add A PHP Code to your WordPress Posts, Pages and Widgets
A very good youtube video that shows how to add php code into wordpress page.
The steps are:
1. Install ‘PHP Code Widget’ plugin.
2. Install ‘Insert PHP’ plugin.
3. Start writing php code inside wordpress pages and posts.