• Resolved vinmassaro

    (@vinmassaro)


    Hello,

    I got my WordPress blog fully skinned but I am having an issue with empty tags repeating from the posts. If you view my blog in IE6 here, you can see that the posts are very spaced apart. That’s because there is an <h2> being generated for the_date that is empty. The way I have it, the date shows up once and the blog posts for that day show below it. Here is my code snippet:

    <?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post(); ?>
    
    <div class="blogpost">
    <h2 class="blogdate"><?php the_date('F jS, Y') ?> </h2>
    <h3><a>" rel="bookmark"><?php the_title(); ?></a></h3>
    <?php the_content('Read more &raquo;'); ?>
    <div class="blogmetatext"> Posted at: <?php the_time('g:i A | ') ?>
    Category: <?php the_category(', ') ?>
    <? if(!is_single()) echo "|"; ?>
    <?php edit_post_link('Edit'); ?>
    </div>
    </div>

    If you view the source, you can see where the empty H2s are being inserted. How can I prevent this? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Repeated empty tags’ is closed to new replies.