WP Query class.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren
2004-08-08 15:31:50 +00:00
parent 0fb185071a
commit 73402f0741
4 changed files with 497 additions and 419 deletions

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; ?>