Home Forums General Issues On every Post Update there is a new meta_id and post_id in the DB


On every Post Update there is a new meta_id and post_id in the DB

  • Hi 🙂

    It’s not easy to describe it in the Title. After playing around with my first own field i noticed that whenever i save a post the custom field from ACF creates a new meta_id row with the new value AND updates the first one. Is this intended? This will get huge if you got 100+ fields. On every save there will be +100 new post metas.

    Ok this is a freshly saved post: (postID: 3595)

    Now this is how my wp_postmeta looks after i saved the post:

    So far so good.

    No let’s update the post, screen with values:

    Now the database:

    This gets repeated endless, the original values gets updated (correct) but then they get created new in the db.

    Any ideas or is it a bug from the nightly?
    (ps: this is not from my own field, i used the standard text and image fields for the test)

    Thanks in advance. 🙂

  • Tested this on a fresh wordpress with ACF from, it’s the same there. 🙁 I hope this is only a bug.


  • Someone got an idea on this issue, are others got the same?

  • Hi @Michael1981

    In your first comment you say After playing around with my first own field. Can you please confirm what you mean by this? Are you creating your own field type?

    If so, perhaps the code you are using is creating the extra postmeta.


  • Hi Elliot,

    thanks for your feedback. 🙂

    I just discovered this testing my own field but i can reproduce it on a fresh wordpress 3.8 install with the ACF version from the wordpress repository. (with the standard theme, and nothing from my own fields / code, just everything out of the box, no other plugins).

    Tomorrow i will test i online (iam working locally at the moment, Zend Apache) and if i can reproduce it there i will inform you.

    Thanks again,

  • Hey elliot,

    hope everything is good. 🙂

    Solved it by remove the standard custom fields from wordpress, looks like they doubled the values by saving them seperatly.

    // remove non ACF custom fields
    function remove_custom_meta_boxes() {

    Thanks for all your work elliot, most valueable plugin ever. 🙂

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

The topic ‘On every Post Update there is a new meta_id and post_id in the DB’ is closed to new replies.