• Resolved pegasus83

    (@pegasus83)


    Hi,
    I have an issue regarding featured images on my installation.

    When I open a new draft and I set the featured image from WP media, when I save the draft for the first time the thumb is stored in the “_thumbnail_id” post meta on my database.

    If I edit the post and save the draft one more time, the featured image disappears as the “_thumbnail_id” post meta line on my db gets deleted. So I have to set it once again.

    If I disable the NextGen plugin I have no problems anymore.

    I can send you a video if you need to see the problem in a better way. I get this problem since 2019, but I found the source of it only now by disabling the plugin.

    I wait for a kind reply.

    Thanks.

    Best regards.

    Alessandro

Viewing 1 replies (of 1 total)
  • Thread Starter pegasus83

    (@pegasus83)

    Hi,

    I had to disable the plugin in order to solve the issue. I can’t fight with every draft when I have to publish more than 30 posts per day.

    I found in the post-thumbnail.php (under products/photocrati_nextgen/modules/ngglegacy/lib/) this part of code

    if ( $thumbnail_id == '-1' ) {
    delete_post_meta( $post_ID, '_thumbnail_id' );
    die('1');

    I tried to comment out, but the thumbnail_id post meta line in the db disappears anyway i f I save the draft.

    I also tried to comment out other parts of that file but nothing changed.

    So I had no choice but disabling the plugin until a solution is found.

    I wait for a kind reply from you regarding this matter.

    Thanks

    Regards

    Alessandro

Viewing 1 replies (of 1 total)
  • The topic ‘Featured image disappears on draft save’ is closed to new replies.