WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
IE 7/8 - My Calendar disappears when trying to view Next/Previous Month (7 posts)

  1. philecker
    Member
    Posted 1 year ago #

    I have a site running My Calendar which works great, but have found a bug where in older versions of IE (7/8) the calendar disappears when trying to view anything other than the month that your currently on.

    http://wordpress.org/extend/plugins/my-calendar/

  2. philecker
    Member
    Posted 1 year ago #

    I appologize you can disregard, I realized it was actually other JavaScript on the page that was breaking the Calendar. Thanks.

  3. philecker
    Member
    Posted 1 year ago #

    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; ?>
  4. philecker
    Member
    Posted 1 year ago #

    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.

  5. Joe Dolson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. philecker
    Member
    Posted 1 year ago #

    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.

  7. Joe Dolson
    Member
    Plugin Author

    Posted 1 year ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic