Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter smallwebsolutions

    (@smallwebsolutions)

    Discovered this was a permalink issue. I had pretty permalinks deselected on the plugin options because my original permalink structure was not working correctly with the calendar. Turned pretty permalinks back on and changed my permalink structure and all is well.

    I’m unable to use the Pretty Permalinks on my site for some reason. With Pretty Permalinks turned off, I experience the same problem as @smallwebsolutions.

    The problem is in the file the-events-calendar/views/datepicker.php.

    If you replace this:

    if( '' == get_option('permalink_structure') || 'off' == eventsGetOptionValue('useRewriteRules','on') ) {
    	$link .= '&eventDisplay=month&eventDate=';
    }

    With this:

    if( '' == get_option('permalink_structure') || 'off' == eventsGetOptionValue('useRewriteRules','on') ) {
    	// TopQuarky - updated just in case $link doesn't have a '?'
    	$sep = (strpos($link,'?') !== false) ? '&' : '?';
    	$link .= $sep.'eventDisplay=month&eventDate=';
    }

    The datepicker now works without Pretty Permalinks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Datepicker not working’ is closed to new replies.