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