Title: Problem opening php page within WordPress page
Last modified: August 30, 2016

---

# Problem opening php page within WordPress page

 *  [namednad](https://wordpress.org/support/users/namednad/)
 * (@namednad)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/problem-opening-php-page-within-wordpress-page/)
 * Greetings all!
 * I have had a multitude of problems to finally get a php file to open within some
   of my WordPress pages. I finally used this code to get the desired results:
 * [insert_php] include(‘devotionals/spurgeon/morning/index.php’); [/insert_php]
 * See [the page that works](http://theloveofgod.org/wp/morning-2/)
 * However when I create and try to use a PHP-Snippets plugin snippet along with
   or without the current_date snippet in a page to do the same thing except for
   using <?php — ?> brackets instead of the ones for [insert_php] all I get is a
   blank page with header and navigation menu.
 * See [The page that isn’t working](http://theloveofgod.org/wp/spurgeons-daily-devotionals/)
 * I’m using a MAC desktop and TextEdit to create my snippet files.
 * I’m a WordPress newbie who taught myself how to create webpages by hand-coding
   html 25 years ago. and I’m lost concerning this. My goal is to have a page without
   so much empty space between header and actual page contents like I have now on
   the page in the first link above.
 * Thanks in advance for any assistance.
 * Respectfully,
    dan
 * [https://wordpress.org/plugins/php-snippets/](https://wordpress.org/plugins/php-snippets/)

The topic ‘Problem opening php page within WordPress page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-snippets.svg)
 * [PHP Snippets](https://wordpress.org/plugins/php-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/php-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-snippets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [namednad](https://wordpress.org/support/users/namednad/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/problem-opening-php-page-within-wordpress-page/)
 * Status: not resolved