Page templates not working
-
First: I’m from Holland, so I should speak good English, but I don’t. Sorry for the grammatical faults en using the wrong words and things.
I have a problem with using more page templates. I want more page templates to use on different pages.
I have page.php:
<?php
/*
Template Name: Page
*/
?><?php get_header(); ?>
<div id="content">
<div class="left">
<div class="pagina">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<b><?php the_title(); ?></b><?php the_content('Lees meer »'); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
<div class="right">
hjhjh
</div>
</div>
<?php get_footer(); ?>
And I have cast.php:
<?php
/*
Template Name: Cast
*/
?><?php get_header(); ?>
<div id="content">
<div class="left">
<div class="pagina">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<b><?php the_title(); ?></b><?php the_content('Lees meer »'); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
<div class="right">
hjhjh
</div>
</div>
<?php get_footer(); ?>
Looks fine to me, but it’s not working. If I write or edit a page I can’t find the option.
What am I doing wrong?
- The topic ‘Page templates not working’ is closed to new replies.