Restrict the month view to June 2017

Home Forums Calendar Products Events Calendar PRO Restrict the month view to June 2017

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1286770
    Jesse
    Participant

    There is an article in the KB that covers this topic:

    However, it can’t be 100% correct because the date in the code says October 1, 2015 but the documentation above says January 1, 2015. And when I try the snippet provided with the current Pro release and ‘2017-06-01’ as the start date value, it doesn’t appear to work as documented. The query returns no events, displays a message in the green feedback box to that effect, and the month view displays May instead of June.

    My goal is to display just the month view for June 2017 even if it is now May.

    #1286912
    Shelby
    Participant

    Hey there Jesse,

    Thanks for posting, I’d love to help!

    Can you point me in the direction of the article you referenced? I think it may be a good starting point for me to help you out with this. 🙂

    Best,

    Shelby 🙂

    #1286913
    Jesse
    Participant

    Oops, looks like I neglected to paste in the link: https://theeventscalendar.com/knowledgebase/set-calendar-to-show-specific-month/

    As I described, the instructions in this article don’t work using the latest builds of the core, Pro and Community Events plugins.

    In our case, the month view should only ever display June 2017. I was easily able to hide the forward and back links using CSS, but I find it difficult to get the default calendar view to load to June rather than May.

    Thanks for your help!

    JOS

    #1287223
    Shelby
    Participant

    Hi again Jesse,

    Thanks for pointing me to that!

    So the snippet in that article is working for me when I paste it into the functions.php file of my testing environment, but only in month view.  So a couple questions for you:

    1. Is your events calendar defaulted to something other than month view?
    2. Also, can you confirm for me that you’re pasting without the opening “<?php”?

    Let me know, and we’ll get this squared away. 🙂

    Thanks!

    Shelby 🙂

    #1297273
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Restrict the month view to June 2017’ is closed to new replies.