• Hello,

    It seems that after an update of WordPress this plugin doesn’t show any events in the front end, only after clicking the next or previous month.

    It looks look the correct month doersn’t show up in JQuery so the initial page has no events.

    Here’s a solution which works fine with me, in wp-content/plugins/ajax-event-calendar/js/jquery.fullcalendar.min.js I added these lines at the end of the file:

    $(document).ready(function() {
    var urlpath = window.location;
    if (urlpath == ‘https://www.test.com’) { // fill here the complete url to your calendar page
    setTimeout(delay, 400);
    }
    });

    function delay() {
    $(‘.fc-button-prev’).children().trigger(‘click’);
    $(‘.fc-button-next’).children().trigger(‘click’);
    }

    Hopefully this helps someone with keeping this great plugin alive ??

    Kind regards,

    Arie

Viewing 1 replies (of 1 total)
  • I had to reference the variables using jQuery instead of $. Here is the code that worked for me:

    jQuery(document).ready(function() {
    	var urlpath = window.location;
    	if (urlpath == 'https://www.test.com') { // fill here the complete url to your calendar page
    		setTimeout(delay, 400);
    	}
    });
    
    function delay() {
    	jQuery('.fc-button-prev').children().trigger('click');
    	jQuery('.fc-button-next').children().trigger('click');
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with not viewing any events SOLVED’ is closed to new replies.