Google Calendar Events
[resolved] wp 3.5 events & future months not showing in ajax mode (5 posts)

  1. stahnke939
    Posted 2 years ago #

    Thanks for this great plugin. I've got a couple problems and I'm not sure if they're related or not.

    I've got two different feeds on this site:

    On wp 3.4 both were showing events on mouseover fine but weren't showing navigation to future months (past Jan'12 on one and Feb'12 on the other).

    I updated to wp3.5 to see if this would resolve the issue but now they are having this same problem AND they no longer show event details on mouseover.

    Based on your other support thread I have:
    1. manually refreshed the cache for each feed.
    2. double-checked to make sure each shortcode is type="ajax"

    Any ideas? Thanks!


  2. Ross Hanney
    Plugin Contributor

    Posted 2 years ago #


    The WP UI plugin you have installed loads an old version of the jQuery UI javascript library, which causes problems for the tooltip script my plugin uses.

    I can't figure out a workaround that doesn't involve editing code, I'm afraid. The following changes to wp-content/plugins/wp-ui/wp-ui.php seem to do the trick:

    (To be on the safe side, take backups before making changes!)

    Lines 215 to 218 look like this:

    wp_deregister_script( 'jquery-ui' );
    wp_register_script('jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js', array( 'jquery' ), '1.8.21' );
    wp_register_script('jquery-easing', $plugin_url . '/js/jquery.easing.1.3.js', array( 'jquery', 'jquery-ui') );

    Edit them to look like this (comment them out):

    //wp_deregister_script( 'jquery-ui' );
    //wp_register_script('jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js', array( 'jquery' ), '1.8.21' );
    //wp_register_script('jquery-easing', $plugin_url . '/js/jquery.easing.1.3.js', array( 'jquery', 'jquery-ui') );

    Lines 203 and 204 look like this:

    // wp_enqueue_script( 'jquery', $js_dir . 'jquery.min.js' );
    // wp_enqueue_script( 'jquery-ui', $js_dir . 'jquery-ui.min.js' );

    Edit them to look like this (remove the comments):

    wp_enqueue_script( 'jquery', $js_dir . 'jquery.min.js' );
    wp_enqueue_script( 'jquery-ui', $js_dir . 'jquery-ui.min.js' );

    If you still have problems, let me know.

  3. stahnke939
    Posted 2 years ago #

    Thanks! That fixed the tooltip issue. Hopefully the WP UI plugin will be updated soon.

    Any ideas on why the calendars don't navigate/display past a month or two?


  4. Ross Hanney
    Plugin Contributor

    Posted 2 years ago #


    It looks like you have the "Maximum number of events to retrieve" option still set to the default (25)? If so, you'll need to increase this so that more events are retrieved.

  5. Ross Hanney
    Plugin Contributor

    Posted 2 years ago #

    Marking as resolved. If you're still having problems, let me know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Calendar Events
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.