Templates Not In Pulldown
-
So I made a couple page templates that do some special queries of my DB like this:
<?php
/*
Template Name: Newstemp
*/
?>
<?php get_header(); ?>
<table width="100%" style="border:1px solid #cccccc;" cellpadding=4 cellspacing=0><tr><td bgcolor="#ffffff">
<table border="0" cellspacing="0" cellpadding="1" align="left">
<tr>
<td>
<h2 align="center">The Newsroom</h2>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr bgcolor="#CCCCCC">
<td align="center"><strong>Homework</strong></td>
</tr>
<tr>
<td valign="top"><?php query_posts('category_name=News&showposts=30'); ?>
<?php while (have_posts()) : the_post(); ?>
<a class="titleLink" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php _e("Posted on "); ?>
<?php the_time('m.d.y',display); ?> at <?php the_time() ?>
<br>
<div class="storycontent">
<?php the_content(); ?>
</div>
<p class="newsmeta">
<?php edit_post_link('Edit','','|'); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?><?php endwhile;?></p></td>
</tr>
</table>
<br><div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="storycontent">
<?php the_content(); ?>
</div>
<br><?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</td></tr></table>
<?php endwhile; endif; ?></td>
</tr></table>
<?php get_footer(); ?>But instead of showing up in the little pulldown on the page in the admin panel where you specify which template you want to use, this is displaying all of its html directly under that pulldown, and I can’t select it. https://www.badcharacter.com/page.jpg
Can anyone spot what I’m doing wrong here?
- The topic ‘Templates Not In Pulldown’ is closed to new replies.