We just updated all of our sites to ACF Pro v5.5.4 (WP 4.7.1).
However, whenever you create a new post or page and either save it as a draft or publish it, it creates another post just like it.
In fact, every time you hit ‘Save Draft’ or ‘Update’ it creates a new post or page. So if you make multiple changes to a post or page, you might have 5 or 6 copies of the same post (different IDs).
We rolled the sites back to ACF Pro v5.5.3 and the issue went away. We haven’t debugged things to see if it’s an issue with the plugin, or an issue with our themes and the plugin—but I wanted to make everyone is aware of the issue ASAP.
I would recommend testing the update before you roll it out to your live sites.
Confirming the same issue here, but in my case it only appears to be happening if I’m using an image field.
The post will be duplicated if I do the following –
– create a new field group,
– add an image field,
– set visibility to (for example) show if post type is post
– create or open an existing post, click update
If I then edit the field group and change the field type from image to text, the problem goes away. At this point updating a post will not create a duplicate.
Changing the field type back to image will bring back the problem.
This was tested on a fresh install of 4.7.1 using ACF 5.5.4, default 2017 theme, and no other plugins activated.
I noticed the issue on a work in progress and from that can confirm that the issue persists when changing visibility conditions (change show if post to show if page, or show if post is “foo”, etc.).
The problem did not seem to affect image fields nested inside of repeaters.
Also, the duplicated posts are created and saved as child pages of the original post.
— Some Post
In my tests updating a child page would not create a duplicate, only updating the parent would cause another duplicate.
Hope this is helpful.
The topic ‘ACF Pro v5.5.4 Creating Duplicate Posts/Pages’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!