tribe_events_get_current_month_day no longer provides previous or next in the d

Home Forums Calendar Products Events Calendar PRO tribe_events_get_current_month_day no longer provides previous or next in the d

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1063153
    Karen Newman
    Participant

    When using the tribe_events_get_current_month_day function in the month view, it no longer provides previous or next for days that are part of the previous or next month. Is there a way to get this back?

    #1063464
    Nico
    Member

    Hi there @canalsideweb,

    Thanks for reaching out and for the report on how tribe_events_get_current_month_day is working. I could verify that’s not returning the values stated in the documentation (prev, next, etc). I’ll share this with the dev team to see if they have some more information on why this changed. I’ll keep you updated!

    What are you using the function for? Maybe we can find a work around to get your code working.

    Please let me know about it,
    Best,
    Nico

    #1063564
    Karen Newman
    Participant

    Hi Nico,

    I’m using this to be able to apply a class to the container so I can set an opacity on the previous and next days. I could just get the current month and year, then get the days month and year and figure it out that way, but I would like to know if it will be implemented again before I start reprogramming. The main reason is, it will cost my client for me to start reprogramming that part.

    Thanks,
    Jared

    #1063950
    Nico
    Member

    Hi Jared,

    Thanks for following up! I’ve checked this with the dev team and it seems to be the documentation for that function is outdated and the output of it has changed a while ago.

    I can help you adjusting the function if you want… Right now those ‘cells’ have some specific classes that might help you:

    • Event from previous month have the following classes: tribe-events-othermonth and tribe-events-past.
    • Event from next month: tribe-events-othermonth and tribe-events-future.

    Do you think you can adjust your CSS to match these classes? I can create a new function that returns ‘prev’, ‘next’ or ‘current’ if you think that would be ideal.

    Best,
    Nico

    #1065481
    Karen Newman
    Participant

    Thanks Nico! This solved my issue.

    #1065717
    Nico
    Member

    Hey Jared,

    Stocked to hear this is solved 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Have a great week,
    Nico

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘tribe_events_get_current_month_day no longer provides previous or next in the d’ is closed to new replies.