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>
Now everytime you click on an event inside the calendar, it will send you to the WordPress post, not the Calendar event.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.