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]
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
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
- The topic ‘Problem opening php page within WordPress page’ is closed to new replies.