Shay
Forum Replies Created
-
Gbyat, please see this thread: https://www.ads-software.com/support/topic/post-type-of-attachments-switched-when-using-pods-gallery?replies=5#post-8419333
I did have to update the image rows in my database to have the post_type of attachment. But after that and commenting out the line of code, any further updates to the pages and images went smoothly.
As a temporary solution, I found that commenting out the following line in post-type-switcher.php restored functionality and I was able to see my images again.
81 // add_filter( ‘wp_insert_attachment_data’, array( $this, ‘override_type’ ), 10, 2 )
I have the same issue on pages.
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.
Disabling the plugin restores proper functionality.
Forum: Plugins
In reply to: [Post Type Switcher] Post Type changes for Attachments on UpdateStrike that… I *am* using Pods and this post should be combined with https://www.ads-software.com/support/topic/post-type-of-attachments-switched-when-using-pods-gallery?replies=2
Thank you! I will look into that as we are using a couple of plugins that deal with Post Types.
Hello gbyat,
Could you please share your resolution? I’m running into the same problem.
Thank you!