• Resolved ToTTi

    (@formgarten)


    I stick to the example with author and books. In my case, the Relationship field allows me to assign several books to an author on the authors page, but a book can only be assigned to ONE author on the book page (also through out a relationship field). Example: I have assigned author 1 the book 1 – now if I assign the author 2 also the book 1, from my understanding book 1 should only be assigned to author 2 anymore. Then the previous author 1 should no more be seen as assigned on the book page. If that’s exactly what the overwrite settings should do, it will not work for me, even though I’ve stuck to all the guidelines: same key_name etc. In my example from above, according to the scenario described, on the book page both authors 1 and 2 are assigned. Was that understandable? :))

    Or didn’t I understand correctly what the overwrite settings does? The code I used (I also checked the copy paste code):

    add_filter (‘acf-post2post / overwrite-settings’, ‘my_overwrite_settings’);
    function my_overwrite_settings ($ settings) {
    ??$ settings [‘orte2partner’] = array (
    ????‘overwrite’ => true,
    ????‘type’ => ‘first’
    ??);
    ??return $ settings;
    }

    • This topic was modified 5 years, 4 months ago by ToTTi.
    • This topic was modified 5 years, 4 months ago by ToTTi.
    • This topic was modified 5 years, 4 months ago by ToTTi.
    • This topic was modified 5 years, 4 months ago by ToTTi.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with overwrite setting’ is closed to new replies.