jimmyjohn
Forum Replies Created
-
Forum: Themes and Templates
In reply to: 2.1 Won’t Allow Multiple Pages With the_loop?Otto – Understood. Many thanks!
Forum: Themes and Templates
In reply to: 2.1 Won’t Allow Multiple Pages With the_loop?Otto – Thank you, but I’m still left confused here. As I said above, it was pretty clear that “Posts Page” made a given page into the Index. My question was relating to getting other pages using other templates to use the loop.
The question is why additional pages, given the standard loop through a custom template, aren’t loading The Loop. As I said in the post referenced above, the code I’m testing is very simple:
<?php
/*
Template Name: Schedule
*/
?><?php get_header(); ?>
<div id=”content”>
<?php include(TEMPLATEPATH.”/l_sidebar.php”);?>
<div id=”contentmiddle”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?><?php the_excerpt());?>
<?php endwhile; else: ?>
<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p><?php endif; ?>
<?php posts_nav_link(‘ — ‘, __(‘« go back’), __(‘keep looking »’)); ?>
</div><?php include(TEMPLATEPATH.”/r_sidebar.php”);?>
</div>
<!– The main column ends –>
<?php get_footer(); ?>
As I said there, if I plug the same code into archive.php, it works; if I plug it into index.php, it works. It’s only when I use this code as a custom template for a custom page that it just doesn’t load The Loop (unless I set that page to essentially override the custom template by setting it as the Posts Page).