• This plugin is really usefull once you fix the little bugs in the code and you know how to use it !

    1. In the acf-2way-pr-v4.php and acf-2way-pr-v5.php files change the $field[“name”] instances to $field[“key”]

    2. to use in the post you created your bidirectional field, just call get_field(‘your_field_name’); and you get a nice array of post objects.

    3. to use in the linked post do the same ! even if you didn’t create a field for this perticular post, the plugin created it in the database with a link back to the first post

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabe Shackle

    (@hereswhatidid)

    Thanks for the feedback! I’ll get that fix in place shortly and put in some more verbose documentation with examples.

    Plugin Author Gabe Shackle

    (@hereswhatidid)

    For the ‘name’ to ‘key’ fix you mentioned, what exactly is that fixing? I’m not seeing any incorrect behavior using the ‘name’ value.

    Thread Starter daroost

    (@daroost)

    What it does is fix the naming of the field in the database so that it remains consistant with the way ACF named it, like field_539673e11f53e. The way the code saved it it was with the description name of the field like field_producer, and it wasn’t taken into account when the get_field was called.

    ACF 4.3.8 used

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Good but lacks documentation minor bug’ is closed to new replies.