How to Add PHP Code to WordPress Post or Page By default WordPress does not allow running PHP code in posts or pages. However some of you might be needing this functionality. This tutorial shows you how to add PHP to WordPress posts and pages with a help of a plugin. What youll need Before you begin this ge youll need the following Access to your WordPress Admin Area s Step 1 Installing Insert PHP plugin PHP code can be run in WordPress posts and pages using Insert PHP plugin. Access your WordPress administrator dashboard and follow these steps in order to install this plugin Under Plugins section press Add New button. Hit Install button. ordered-list Refer to this tutorial s on how to install and activate WordPress plugins if you need more detailed instructions. Step 2 Inserting PHP code in your post Start a new WordPress post or page and put PHP code you want to run. Keep in mind that regular PHP opening and closing tags (