Images are automatically loaded
-
Hello,
I am using the metabox to upload multiple images. When I click to new post, it automatically is using the images of the ‘Media’ no I have chosen.
Every new post it loads all images of ‘Media’.
Have any setting should I do so that it does not automatically load the images?add_filter( 'rwmb_meta_boxes', 'sizy_post_metaboxes' ); function sizy_post_metaboxes( $meta_boxes ) { global $text_domain; $prefix = 'sz_post_'; $meta_boxes[] = array( 'title' => __( 'Informa??es', $text_domain ), 'post_types' => 'post', 'priority' => 'high', 'fields' => array( array( 'id' => $prefix . 'local', 'type' => 'text', 'name' => __( 'Local do evento', $text_domain ) ), array( 'id' => $prefix . 'photo', 'name' => __( 'Imagens', $text_domain ), 'type' => 'image_upload', 'force_delete' => false ), ) ); return $meta_boxes; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Images are automatically loaded’ is closed to new replies.