Support » Plugin: ACF Post-2-Post » Field Exeptions not working?

  • Hi,
    I have many bidirectional relationships fields, but I want to disable one named ‘C_PT’.
    I’ve added to functions.php this:

    add_filter(‘acf/post2post/update_relationships/key=C_PT’, ‘__return_false’);

    But no luck, the field is still bidirectional.

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

    (@hube2)

    Not sure how you are using this. This will only work when you have fields of the same name but different keys of if you want to disable a field on all posts where it appears.

    First thing I notice is that “C_PT” is not a valid field key, field names will not work. A field key generally looks something like “field_0ab34587”.

Viewing 1 replies (of 1 total)
  • The topic ‘Field Exeptions not working?’ is closed to new replies.