<?php
/*
Template Name: FILENAME
*/
?>
<?php get_header(); ?>
<div class="content">Content goes here...</div>
<?php get_footer(); ?>
Save this page as FILENAME.php and place it in your template directory. Now make a new page and select the page template as “FILENAME” (Edit filename as per your needs)
matt_rix, thanks for the answer, it works!!
However, I cannot edit hte page in the “write page” console, all of the thing I type in were ignored. Does this mean that I have to edit it with an external writer??
<?php
/*
Template Name: FILENAME
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »
'); ?>
<?php wp_link_pages(array('before' => '<strong>Pages:</strong> ', 'after' => '
', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '', '
'); ?>
</div>
<?php get_footer(); ?>
Forgot to include the page functions
Use this one. Just make sure you edit the DIV tags corresponding to your theme’s stylesheet.