Post Type changes for Attachments on Update
-
This is similar to https://www.ads-software.com/support/topic/post-type-of-attachments-switched-when-using-pods-gallery?replies=2 except I’m not using Pods.
Anytime I Publish a post it’s fine, but when I Update a post, anything that’s in my image field for my Masthead image gets saved as post_type:[the post’s type] rather than post_type:attachment.
This makes the image disappear from the image library and the page. However, the image still remains in the filesystem. So, it *is* getting uploaded.
Manually updating the image’s row in the wp_posts table of the database to have a post_type of attachment restores the image to the page and to the media library.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Post Type changes for Attachments on Update’ is closed to new replies.