How do I make a static html that runs php?
-
Hi,
I read through the ‘creating a static front page’ page, and I tried it and it works for me… if the extension of the file is php.
But I want to do this for an html file, and just changing the extension doesn’t work.
Specifically, I’m trying to get an html to pull my blog’s header, sidebars and footer. It won’t even need a loop because the text is just going to be a “welcome” paragraph.
This is my php file, which works fine:
<?php define(‘WP_USE_THEMES’, false);
require(‘../garby/wp-blog-header.php’); get_header();?>
<?php get_sidebar(); ?>
Welcome message
<?php get_footer(); ?>But if I change the extension to html and load up the page in my browser, all it shows is “Welcome message”
How do I work the html? Thanks
- The topic ‘How do I make a static html that runs php?’ is closed to new replies.