Error when adding ACF elements to single event

Home Forums Calendar Products Events Calendar PRO Error when adding ACF elements to single event

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #943262
    ite
    Participant

    When adding some ACF-elements (Relationship) to events, they do not show as they should.
    Instead of showing f.ex title + excerpt of other posts, the title and excerpt showing are the event-title and event-excerpt. In other words it is only repeated, but should be other posts title and excerpt…

    Sorry for a crappy explanation 😉

    #943325
    Brian
    Member

    Hi,

    Sorry for the issues you are having.

    Unfortunately, there is not much I can do for 3rd party plugin conflicts.

    However, I did try it out and found this coding to work:

    <?php

    $related_posts= get_field('relationship_field_name');

    if( $related_posts): ?>

    <?php endif; ?>

    I did rename $posts to $related_posts from the example, but not sure if that is needed.

    That is from ACF’s example on this page:

    Relationship

    The first example did not work for me, it returned the same results as you did and I think it is caused by the setup_postdata function.

    That should get it working for you.

    Let me know.

    Thanks

    #951899
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Error when adding ACF elements to single event’ is closed to new replies.