• 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> | ‘);” target=”_self”><script type=”text/javascript”>postCountTB(‘<?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.