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.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.