Add a simple shortcode to include a PHP file just like include(); function does. How to use In pages or posts , add this in the textarea [include]file.php[/include] In your template , upload file.php You should see the content of file.php when publishing the page or post.