WordPress.org

Support

Support » Plugins and Hacks » [Resolved] IE 7/8 – My Calendar disappears when trying to view Next/Previous Month

[Resolved] IE 7/8 – My Calendar disappears when trying to view Next/Previous Month

Viewing 6 replies - 1 through 6 (of 6 total)
  • I appologize you can disregard, I realized it was actually other JavaScript on the page that was breaking the Calendar. Thanks.

    Well my initial thought of JavaScript was incorrect, it seems that a loop in my sidebar is making the next months not load… if I comment out that loop everything works. The loop comes after my calendar. Any help figuring this issue out would be appreciated. Thanks.

    <?php query_posts( array( 'post_type' => 'alerts', 'order' => 'DESC', 'showposts' => 4));  ?>
    					<?php while (have_posts()) : the_post(); ?>
    						<?php echo '<div>'; ?>
    							<h5><?php echo the_title(); ?></h5>
    							<?php echo '<p>'; ?>
    								<?php echo the_content(); ?>
    							<?php echo '</p>'; ?>
    						<?php echo '</div>'; ?>
    					<?php endwhile; ?>

    I find that if I remove the endwhile; the next/previous functions start to work but then all the events dispay (versus popping up onclick). If I remove the loop all together the calendar works perfectly.

    Plugin Author Joe Dolson

    @joedolson

    Is the note of your WP version accurate? You’re still running 3.1.3?

    That makes it harder to say what the problem is, but it’s not an issue with my calendar, I think. The fact that this happens only on ie7/8 but is triggered by a PHP loop means the the calendar probably is present, but a display issue in your theme is causing it not to be visible. Without seeing your site, I can’t say for sure.

    Thanks Joe,

    I’ve come to the same conclusion the issue is with a PHP Loop. I’ve found that if I remove the last loop (sidebar) that the calendar works as expected, but haven’t figured out how to resolve the issue, and removing that sidebar isn’t really any option.

    Plugin Author Joe Dolson

    @joedolson

    Any use of query_posts() should be terminated with a call to wp_reset_query(); try adding that function after your while loop.

    <?php endwhile; ?>
    <?php wp_reset_query(); ?>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] IE 7/8 – My Calendar disappears when trying to view Next/Previous Month’ is closed to new replies.