Title: Loop Error
Last modified: August 18, 2016

---

# Loop Error

 *  [InvaderStu](https://wordpress.org/support/users/invaderstu/)
 * (@invaderstu)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/loop-error/)
 * I’m trying to set up my own template and I’m almost done apart from a problem
   that is happening in my loop but only in FireFox. In internet explorer it is 
   displayed right.
 * I’ve put explanations of the error in the code below. Is there anything obvious
   that I am doing wrong?
 * <div id=”content”>
    <div id=”post_top”> </div>
 * <div id=”post”>
 * <!– OPEN LOOP —————–>
    <?php if (have_posts()) : while (have_posts()) : the_post();?
   > <div class=”post” id=”post-<?php the_ID(); ?>”>
 * <!– POSTS TITLE AND DATE: This is not being shown every odd numbered post (eg:
   1,3,5,etc) —————–>
    <div class=”storytitle”> <?php the_date(”,'<postdate>’,'</
   postdate>’); ?> <br> <?php the_title(); ?> </div>
 * <!– POSTS TEXT: This is not being displayed every even numbered post (e.g: 2,4,6,
   etc) —————–>
    <div class=”posttext”> <?php the_content(‘Read more…’); ?> <br>
   <?php edit_post_link(__(‘Edit’)); ?> </div>
 * <!– POSTS INFO AND COMMENTS: This is not being shown every odd numbered post (
   eg: 1,3,5,etc) —————–>
    <div class=”postinfo”> <div class=”category”> Posted 
   in: <?php the_category(‘, ‘); ?> by <?php the_author() ?> @ <?php the_time() ?
   > </div>
 * <div class=”postcomments”>
    ‘);” target=”_self”><script type=”text/javascript”
   >postCount(‘<?php the_ID(); ?>’);</script>
   
    </div> </div> <br>
 * <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’);?
   > <?php endif; ?>
 * </div>
 * </div>
 * <div id=”postbottom”>
    </div>
 * <?php get_footer(); ?>

The topic ‘Loop Error’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 0 replies
 * 1 participant
 * Last reply from: [InvaderStu](https://wordpress.org/support/users/invaderstu/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/loop-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
