I’m still investigate on this issue.
When I display the sql request I can see this:
b.meta_id = a.meta_id + 1
I think it support my previous comment about database auto_increment range.
Is there any reason to have this behavior ?
Post_id and meta_value are they not enough for the request ?
This is a very important element of SQL query. With it, you can associate the ACF field with its settings.
IDs must go after the other. Otherwise you will not handle it.
Thank you for the reply.
However, I can’t change the database settings. So, each time a new meta is created, associated meta_id are separated by 10.
So it couldn’t work.
To associate the ACF fields meta the link are post_id and meta_key:
Exemple:
post_id = 18952 / meta_key = search_content_extra
post_id = 18952 / meta_key = _search_content_extra
I can’t get how the query work exactly.
Is there an other table involve in the request ?
Even if the auto increment range change now, I won’t be able to change already saved meta.
Unfortunately. I am not able to help you. ID values in wp_postmeta must increase by 1.
Ok thank you for your help.
I’ll try to find an other solution so.
Can you simply indicate me if this requirement is specific to your plugin or if it’s a wordpress one ?
All WP work like this. You have a non-standard setting.
Hi @devci,
I made an update in which there is a change to automatic detection of AUTO_INCREMENT field. Please download the latest update and let us know if this solved the problem.