I'm writing a custom newsletter plugin.
The plugin allows me to show a subscription box wherever I want. Then I want the action to take place in a custom PHP page located in my plugin's folder. But I want this page to look just like another page on my blog.
So Here is the code that I have for this custom page:
<?php require_once('../../../wp-blog-header.php'); $headerURL = get_bloginfo('template_url')."/header.php"; include($headerURL); ?> <div id="mega-content"> <div id="content_box"> <div id="content"> Here you do your stuff... </div> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?>
The content is here but my header template isn't included. Any idea why? (probably just a stupid error on my side).
If any of you kow of any other more elegant way of doing this, you're welcome !