WP Query class.

git-svn-id: https://develop.svn.wordpress.org/trunk@1516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-08-08 15:31:50 +00:00
parent 851ff5f787
commit cf3a6080bd
4 changed files with 497 additions and 419 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ require('./wp-blog-header.php');
<h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<div id="content">
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_date('','<h2>','</h2>'); ?>
@@ -56,7 +56,7 @@ require('./wp-blog-header.php');
<?php comments_template(); // Get wp-comments.php template ?>
<?php endforeach; else: ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>