Support

Account

Home Forums Front-end Issues ACF and WordPress calendar Reply To: ACF and WordPress calendar

  • I forgot that I’ve solved this. sorry. I’m using The Events Calendar plugin for WordPress.

    1) In your theme folder, create this hierarchy:
    [theme folder]/tribe-events/month/ and copy single-event.php from wp-content/plugins/the-events-calendar/views/month/
    2) Create a Relation field that connects the Calendar event to a WordPress post (I call it relatedevent)
    3) Locate this code and `<div id=”tribe-events-event-<?php echo $event_id ?>” class=”<?php tribe_events_event_classes() ?>”><h3 class=”tribe-events-month-event-title summary uk-text-center”><a href=”<?php the_field(‘relatedevent’); ?>” class=”url”><?php the_title() ?></a></h3>
    </div>`

    Now everytime you click on an event inside the calendar, it will send you to the WordPress post, not the Calendar event.