image field – metafield not being removed when image unlinked in post editor

[ad_1]

I have a pod with several fields. One is a file field, which I can use to attach images to my custom post.

When I’m editing the custom post, if I add an image and hit publish / update, it works.

When I remove the image and hit update, it disappears from the input field and appears empty. However the record in wp_postmeta remains, so when I retrieve my metafields elsewhere in wordpress, the image is always returned. The only way I can properly remove it is by editing wp_postmeta directly.

Please help.

Edit:

Nevermind, I was being stupid!

  • This topic was modified 28 minutes ago by hedgehog90.
  • This topic was modified 23 minutes ago by hedgehog90.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer