month view – show upcoming from other month by default

Home Forums Calendar Products Events Calendar PRO month view – show upcoming from other month by default

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1116942
    michael
    Participant

    Hello.
    Im using your pro version of Event Calendar.
    http://develop.name/ditto/lg/
    Could you please help me – say i dont have any more events in may, but ive got some in June, can i show first upcoming event by default so i dont have empty space when user open my site for the first time?
    So can the plugin, by default, just show first upcoming event no matter if its 4 months in the future?

    thank you

    #1118175
    Brook
    Participant

    Howdy Michael,

    We have a snippet that does this. It seems to be working just fine but for some users it is generating an error. If you don’t have errors set to show you won’t see the error and you should be fine. In spite of the error though it works!

    https://gist.github.com/elimn/d90f9a4b1900b0fe4d50eca9f5e0921c

    Paste that snippet at the top of your theme’s functions.php file. Replace the opening “<?php” with this snippet, as this snippet includes that opening tag.

    I am still digging in to figure out why there is an error at all. But until then I suggest running this snippet with WP_DEBUG  set to false.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

     

    #1123894
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘month view – show upcoming from other month by default’ is closed to new replies.