I've created a preliminary theme that I'm just trying to get to load, under the name schedule.php:
<?phpThe code works just fine if I load it into archive.php and then load a given month's posts.
Template Name: Schedule
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<?php posts_nav_link(' — ', __('« go back'), __('keep looking »')); ?>
<!-- The main column ends -->
<?php get_footer(); ?>
I set up another page, "Schedule", with schedule.php as its template, expecting it to produce the same results as the archive page with this code, but instead I'm getting nothing.
It's simply not accessing The Loop.
Where are I going wrong?