Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
ACF Post-2-Post icon

ACF Post-2-Post

v1.7.0
by John Huebner · 5.0 (39 reviews)

Automatic Two Way (Bidirectional) Relationships with ACF5

4K+ active installs Updated Jul 09, 2024 Tested to 6.6.2
Try Demo Download
Pre-installed Ready in ~10s No card

About ACF Post-2-Post

This plugin is an add-on for Advanced Custom Fields (ACF) version 5 or higher. It allows the existing ACF Relationship and Post Object fields to work bi-directionally, automatically updating the relationship field on the other end. It does not create any new types of fields or admin interface.

Changelog

1.7.0

  • Added filter to allow disabling all fields so that specific fields can be enabled

1.6.0

  • Added filter to allow specifying append or prepend new relationship when not overwriting

1.5.2

  • Corrected PHP Notice: Trying to access array offset on value of type bool lines 99 & 130

1.5.1

  • Removed Github Updater Support

1.5.0

  • Added filter to allow specifying to append or prepend new relationship (can supercede overwrite setting)

1.4.1

  • Corrected logic error in overwrite
  • add context to action hooks

1.4.0

  • added actions after updates to related posts to allow 3rd party integrations

1.3.2

  • removed donation nag

1.3.1

  • Corrected bug in 1.3.0 that prevented all fields from updating correctly

1.3.0

  • added filter to allow disabling bidirectional relationships on fields by field key

1.2.8

  • changed from plugins_loaded to after_setup_theme for checking if ACF >= 5 is installed to allow for ACF being installed in themes

1.2.7

  • replace php array_walk() w/array_map() to correct issue with str/int conversion of IDs

1.2.6

  • corrected serialization of post IDs as strings instead of integers to allow correct ACF meta_key value searching of serialized ID values useing LIKE "{ID}"

1.2.5

  • plugin disabled if ACF5 not installed
  • plugin deactivated if ACF5 not installed

1.2.4

  • removed github updater support

1.2.3

  • initial release to WordPress.org

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.