Support » Plugin: ACF Post-2-Post » Does this work automatically, or are we to do something?

  • Resolved morespinach


    Hello. This is exciting as this is just the functionality we’re looking for. On latest ACF Pro.

    We have two custom post types:

    1. Events –> each Event post contains workshops.
    2. Workshops –> each Workshop post is related to an Event.

    This is a bi-directional relationship. In both field groups, I have relationship posts.

    When I edit an Event post and associated three Workshops inside it. I expect to see that Event listed when I go to one of the Workshop posts. But I don’t. What am I missing?

    Do I need to add some additional code to functions.php or something?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Huebner


    The fields need to have the same name.

    Thread Starter morespinach


    Thank you, but that doesn’t make sense. Two fields that “relate” to each other across two completely separate entities need to have the same name? How?

    One is an Event Name. The other is a Workshop Name. That’s the most basic “bidirectional” relationship across entities.

    Or is this plugin for some other kind of bidirectional?

    Plugin Author John Huebner


    You create an acf relationship or post object field for both post types.

    1) They can be the same field in a field group that is on both post types or

    2) you create 2 different fields in 2 field groups, 1 group on each post type. You set the acf “field name” to the same value for both.

    Thread Starter morespinach


    Got it.

    The field_name itself should be the same on both sides. The name etc is unaffected, only the relationship field. Works.

    You write some of the most helpful plugins! I can’t imagine how people use WordPress without ACF and its ecosystem of plugins.

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does this work automatically, or are we to do something?’ is closed to new replies.