Home Forums General Issues ACF + Duplicate Post plugin


ACF + Duplicate Post plugin

    • NickBS

    • October 29, 2013 at 2:56 am

    I’m having trouble using the Duplicate Post plugin ( alongside ACF (and the repeater field addon): when I duplicate a page the data in the ACF fields appear to have been duplicated successfully but editing any of the content/values has no effect on the duplicated page when viewing it on the front end.

    Upon closer examination, the get_field/get_sub_field functions appear to read the ACF data from the original page – not the new, duplicated one.

    Note that I am making use of the repeater field addon, however I’m not sure if this is relevant.

    My initial searches for a fix brought me to this topic:, which seems to describe the same problem.

    Any ideas?



    • Elliot

    • October 29, 2013 at 6:03 pm

    Hi @nickbs

    I can guarantee that the issue does not stem form the repeater field.

    The issue sounds like a conflict in the global $post object.

    In your page template, can you dump out the global $post object. Is the post->ID correct? If not, you will need to do some debugging to find out why, but the problem will not be from ACF, but perhaps from cache such as the other thread decribes


    • NickBS

    • October 29, 2013 at 8:06 pm

    Thanks Elliot, yes – it was a $post issue.

    It appears something else further up in the template had been using a $post variable which just happened to be set to the original page. A global $post and some sensible variable renaming has sorted out the problem.

    Thanks for your patience! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.