Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moving the while statement to be outside of the article

was out of place and splitting this tag - thanks to Wai for the fix!
  • Loading branch information...
commit f004e09ac66f3edb5c48783b01dd439fcf52c6e0 1 parent 685c8ff
@mimoYmima authored
Showing with 22 additions and 22 deletions.
  1. +22 −22 archive.php
View
44 archive.php
@@ -43,31 +43,31 @@
<?php endif; ?>
+ <?php while (have_posts()) : the_post(); ?>
+
<!--BEGIN: Archive-->
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <?php while (have_posts()) : the_post(); ?>
-
- <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
-
- <small><?php the_time('l, F jS, Y') ?></small>
-
- <div class="entry">
- <?php the_content() ?>
- </div>
-
- <?php if(!is_tag()): // don't show this stuff on tag pages '?>
- <!--BEGIN: Post Meta Data-->
- <footer class="post-meta-data">
- <ul class="no-bullet">
- <li class="add-comment"><?php comments_popup_link('Share your comments', '1 Comment', '% Comments'); ?></li>
- <li>Posted in <?php the_category(', ') ?></li>
- <li><?php edit_post_link('[Edit]', '<small>', '</small>'); ?></li>
- <li><?php the_tags('Tags: ', ', ', '<br />'); ?></li>
- </ul>
- </footer>
- <!--END: Post Meta Data-->
- <?php endif; ?>
+ <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+
+ <small><?php the_time('l, F jS, Y') ?></small>
+
+ <div class="entry">
+ <?php the_content() ?>
+ </div>
+
+ <?php if(!is_tag()): // don't show this stuff on tag pages '?>
+ <!--BEGIN: Post Meta Data-->
+ <footer class="post-meta-data">
+ <ul class="no-bullet">
+ <li class="add-comment"><?php comments_popup_link('Share your comments', '1 Comment', '% Comments'); ?></li>
+ <li>Posted in <?php the_category(', ') ?></li>
+ <li><?php edit_post_link('[Edit]', '<small>', '</small>'); ?></li>
+ <li><?php the_tags('Tags: ', ', ', '<br />'); ?></li>
+ </ul>
+ </footer>
+ <!--END: Post Meta Data-->
+ <?php endif; ?>
</article>
<!--END: Archive-->
Please sign in to comment.
Something went wrong with that request. Please try again.