tribe_get_start_date returns timestamp

Home Forums Calendar Products Events Calendar PRO tribe_get_start_date returns timestamp

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1326667
    Nicolas
    Participant

    Dear Team,

    I face a same issue than another user ( https://theeventscalendar.com/support/forums/topic/returning-the-start-date-using-tribe_get_start_date/).

    I try to write a function but it does not work :
    if (tribe_is_event() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_view() || ‘tribe_events’ == get_post_type() || is_singular( ‘tribe_events’ )) {
    tribe_get_start_date() = tribe_get_start_date()
    } else {
    return ”;
    }
    Could you please provide me a function in order to return nothing when start_date is calling on a non-event post ?

    Best regards,

    Nicolas

    #1327257
    Cliff
    Member

    Hi, Nicolas.

    I see you have

    tribe_get_start_date() = tribe_get_start_date()

    You can’t set a function to be equal to a function. Maybe you meant for that to be a variable?

    If you need additional assistance with this, please post the entire code snippet (including hook) and also explain where you’re placing it.

    #1337432
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_get_start_date returns timestamp’ is closed to new replies.