Custom Fields
Re-Envisioned
Support General Image Upload: image is deleted after change position using drag and drop

This topic contains 2 replies, has 2 voices, and was last updated by  Jefferson 6 months, 1 week ago.

  • Creator
    Topic
  • #12657
    Resolved
    Jefferson
    Participant

    The metabox works fine when a post is created, but when an imagem have your position changed trought drag and drop, after post update the image that have your position changed is deleted.

    My field:

    
    array(
      'id' => 'images',
      'type' => 'image_upload',
      'name' => esc_html__( 'Imagens', 'webpesados' ),
      'force_delete' => true,
      'image_size' => 'thumbnail',
      'columns' => 12,
      'tooltip' => array(
        'icon' => 'help',
        'content' => esc_html__('Arraste as imagens para alterar sua ordem de exibição.', 'webpesados'),
        'position' => 'right',
      ),
    ),
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #12671

    Anh Tran
    Keymaster

    Thanks for your feedback. I’ve just noticed the issue on WP 5.0.1. Did you test with the same version (or Gutenberg)?

    Update:

    Turns out it’s a bug in the plugin when force_delete=true. I’ve fixed on Github. Can you please check it?

    https://github.com/wpmetabox/meta-box

    #12676

    Jefferson
    Participant

    I’m using 4.98 version of WordPress. Thank you for the fix, works fine!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.