Home › Forums › Bug Reports › Flexible Content data still in wp_postmeta after layout removed › Reply To: Flexible Content data still in wp_postmeta after layout removed
I can’t remember why the undeleted field data bothered me, but I imagine it was the same as Michelle: it was showing up on the front end.
Certainly it was problematic enough that I opened a bug report.
In any case, when data is deleted but not removed from the database that feels like a bug to me.
The way that I imagine you would fix this problem is by deleting the data from wp_postmeta via AJAX when the user deleted the Flexible Content row. I imagine this would be much more efficient than trying to clean it up when the post is saved.
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!
© 2022 Advanced Custom Fields.