Title: [ACF] Clone post issue
Last modified: August 30, 2016

---

# [ACF] Clone post issue

 *  Resolved [Filozofer](https://wordpress.org/support/users/filozofer/)
 * (@filozofer)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/acf-clone-post-issue/)
 * Hello,
 * I’ve been facing an issue on one of my site which using the plugins AdvancedCustomField(
   ACF) and ThreeWP-Broadcast.
 * **How to reproduce the issue:**
    - Get 2 blog on the same wordpress installation (Blog A & Blog B for exemple)
    - Get 2 custom types (Event & News for exemple)
    - Broadcast an event from Blog B to Blog A call Event 1
    - Broadcast a news from Blog A to Blog B call News 1
    - Have an ACF field “list of news” (relationship) on Event 1
    - Then assign News 1 to this field on Event 1. Update Event 1.
    - You will end up with 2 News call “News 1” on Blog A after this manipulation.
      A clone is born !
 * **What happened ?**
 * When updating Event 1, the plugin check the existance of a child post for News
   1 on Blog A. BUT the plugin did not check if News 1 is a child of a post from
   Blog A (or in others words: if News 1 have a parent post on Blog A).
 * **Is that a bug ? **
    Maybe. I don’t know. Probably ?
 * **How did I fix it ?**
    Here’s myfix: [https://gist.github.com/anonymous/1f31054848d16f355e26](https://gist.github.com/anonymous/1f31054848d16f355e26)
   File is locate here : threewp-broadcast/src/equivalent_posts.php Fix start at
   line “Start FIXING” and end at “End FIXING”.
 * Feel free to comment or contact me. I hope my fix is not introducing any regression!
   
   [https://wordpress.org/plugins/threewp-broadcast/](https://wordpress.org/plugins/threewp-broadcast/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/acf-clone-post-issue/#post-6643754)
 * Managed to reproduce and, yes, this is a bug.
 * I’ll look at your fix and see what needs to be done to get this working properly.
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/acf-clone-post-issue/#post-6643795)
 * Fixed and simplified your fix. How does the new file work?
 * [https://gist.github.com/anonymous/f4f770848e0356f3b283](https://gist.github.com/anonymous/f4f770848e0356f3b283)
 *  Thread Starter [Filozofer](https://wordpress.org/support/users/filozofer/)
 * (@filozofer)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/acf-clone-post-issue/#post-6643903)
 * Work as expected ! No more clone on my environment !
    Good job 🙂
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/acf-clone-post-issue/#post-6643949)
 * Will be included in the next version.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[ACF] Clone post issue’ is closed to new replies.

 * ![](https://ps.w.org/threewp-broadcast/assets/icon.svg?rev=1013783)
 * [Broadcast](https://wordpress.org/plugins/threewp-broadcast/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/threewp-broadcast/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/threewp-broadcast/)
 * [Active Topics](https://wordpress.org/support/plugin/threewp-broadcast/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/threewp-broadcast/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/threewp-broadcast/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [clone](https://wordpress.org/support/topic-tag/clone/)

 * 4 replies
 * 2 participants
 * Last reply from: [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/acf-clone-post-issue/#post-6643949)
 * Status: resolved