Fast Forward Tutorial – sync mini calendar with month of single event page

Home Forums Calendar Products Events Calendar PRO Fast Forward Tutorial – sync mini calendar with month of single event page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #821296
    tornadoo
    Participant

    I tried to set the mini calendar to the same month of the currently shown event in the single event page.

    I tried this in functions.php:
    $startdate= tribe_get_start_date(null,false,’Y-m’);
    new Tribe_Advance_Minical($startdate);

    But that does not work.

    BTW: new Tribe_Advance_Minical(‘2014-12’); works at that place.

    #822707
    Barry
    Member

    Hi!

    It’s difficult to say, but my guess would be that the global post object is not pointing to an event when this bit of code runs. If you echo out or otherwise inspect the value of $startdate what do you see?

     

    #822747
    tornadoo
    Participant

    Hey Barry,
    thanks for your answer.
    No, the global post object is getting that info.
    $startdate echoes 2014-11 for example.

    Any other idea?

    #822798
    tornadoo
    Participant

    Maybe you are right… I am doing the echo inside a add_filter function…
    maybe tribe_get_start_date(null,false,’Y-m’) is not available outside…
    Any other idea? Maybe an alternative way to get the date of the current event on single event page?

    #822818
    tornadoo
    Participant

    Ok. I put it into the single-event.php, calling new Tribe_Advance_Minical($startdate);
    That works….
    Many thanks for pushing in right direction!

    #822926
    Barry
    Member

    Awesome, happy to help 🙂

    I’ll go ahead and close this thread – but if we can assist with anything else please don’t hesitate to create new threads as needed and one of the team will be only too happy to help.

    Also, if you have a moment to spare, we’d love to hear your thoughts on The Events Calendar across on our plugin review page – thanks again!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Fast Forward Tutorial – sync mini calendar with month of single event page’ is closed to new replies.