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?
Read more here:: How do I add HTML to custom post type template based on logic?