Support

Account

Home Forums ACF PRO Bidirectional Relationships and multiple post types Reply To: Bidirectional Relationships and multiple post types

  • You could probably use an acf/load_field filter https://www.advancedcustomfields.com/resources/acf-load_field/, check the post to see what post type it is and then alter the settings of the field to filter by a specific post type. It could be complicated figuring out what post type the field is being loaded for and I’m not sure of all the details.

    I probably would not do that much work and I’d use two different fields, one on each post type, with the correct settings.

    The first way would be more elegant, but the second would be easier to do, take less code, be faster to accomplish and be easier to maintain in the future