True Static Pages
-
With the new themes in 1.5 its very easy to have true static pages like https://domain.com/static.php (and theme independent assuming your theme has a header and a footer), you can also edit them through the admin interface Manage – Files -> :
<?php
require(‘./wp-blog-header.php’);
$themes = get_themes();
$current_theme = get_current_theme();
$current_template_dir = $themes[$current_theme][‘Template Dir’];
include($current_template_dir . “/header.php”);
?>PUT YOUR STATIC CONTENT HERE
<?php include($current_template_dir . “/footer.php”); ?>
- The topic ‘True Static Pages’ is closed to new replies.