Support

Account

Forum Replies Created

  • Even though nobody in this support forum helped me, I created a quick way to solve this. Your loop should look like this:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if (get_post_type() == 'comic'): ?> <!-- Change this to the ACF field name you need -->
    <article><!-- All the code you want without calling ACF -->
    </article> 
    <?php else: ?>
    <article><!-- All the code you want with ACF calls-->
    </article>
    <?php endif; ?>
  • 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.

Viewing 3 posts - 1 through 3 (of 3 total)