0

I am using CMB2 to create a custom post type called event. This custom type has a field called 'Event Date' which is of type text_date_timestamp.

When a user goes to an event page, I need the page to show a big 'Book Ticket' button if the current date is before the event's date.

How can I change the template file (single-event.php) so that this button is show below the main content?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.