Adding header/footer to files outside WP?
I have a php page residing in the root of my website, but outside of WP. I want it to have the same header and footer as the rest of my blog, but I am unsure how to do this. I tried a simple php include statement like this:
<?php include(“/home/website/www/wp-content/themes/classic/header.php”); ?>
but nothing shows up when I try that. When I don’t use the include, the file shows, but it lacks the header (and the footer when I add that as an include too). I am sure I am missing something very very simple, but what is it?
Any ideas how to add the theme to these outside files? What should be the PHP code?
- The topic ‘Adding header/footer to files outside WP?’ is closed to new replies.