My page template isn’t pulling the loop
-
Hello,
I am developing a site within the Atahualpa theme that uses the loop multiple ways between a few pages. One of those pages, the one below, should contain the full loop. I’ve created a template for the page, yet the page is not pulling the loop.
As an aside, advice on hiding the date and time for the page (while maintaining date and time on posts) would be greatly appreciated.
The url is http://themountainshop.com/blogcenter
The template code reads:
<?php /* Template Name: blogcenter */ ?> <?php /* get all options: */ include (TEMPLATEPATH . '/functions/bfa_get_options.php'); get_header(); ?> <img src="http://themountainshop.com/wp-content/uploads/2009/10/blogcenter.header.png"> <!-- Start the Loop. --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- Display the Title as a link to the Post's permalink. --> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- Display the Time. --> <small><?php the_time('F jS, Y'); ?></small> <!-- Display the Post's Content in a div box. --> <div class="entry"> <?php the_content(); ?> </div> <!-- Display a comma separated list of the Post's Categories. --> <p class="postmetadata">Posted in <?php the_category(', '); ?></p> </div> <!-- closes the first div box --> <!-- Stop The Loop (but note the "else:" - see next line). --> <?php endwhile; else: ?> <!-- The very first "if" tested to see if there were any Posts to --> <!-- display. This "else" part tells what do if there weren't any. --> <p>Sorry, no posts matched your criteria.</p> <!-- REALLY stop The Loop. --> <?php endif; ?> <?php bfa_center_content($bfa_ata['center_content_bottom']); ?> <?php get_footer(); ?>
Thanks in advance!
Brian
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘My page template isn’t pulling the loop’ is closed to new replies.