Hi there,
I added a button to the events description using the functions.php in the child theme.
The code goes something like this:
function extra_button() {
echo do_shortcode('[button]');
}
add_action ('tribe_events_single_event_before_the_content', 'extra_button');
It’s working fine, but I’d like the button to show up only when it’s an upcoming event.
If the event is over, it’s still accessible through the archive, which is fine, but the button shouldn’t show up anymore.
I guess I’ll have to use some conditional statement to check whether it’s an upcoming or passed event…
Do you have any advice?