Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John James Jacoby

    (@johnjamesjacoby)

    Hey Dean,

    Sorry about this. It may be a few days before I have time to dig into where exactly the conflict is. When I do, I’ll let you know here.

    -JJJ

    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.

    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 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post type of attachments switched when using Pods gallery’ is closed to new replies.