Title: Plugin Not Working
Last modified: September 12, 2016

---

# Plugin Not Working

 *  Resolved [nbora](https://wordpress.org/support/users/nbora/)
 * (@nbora)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-381/)
 * Hello,
 * I need to have multi uploading image functionality in my custom widget.
    <?php
   function form($instance) { /*For single image upload*/ //$image_uri = isset( 
   $instance[‘image_uri’] ) ? esc_url_raw( $instance[‘image_uri’] ) : ”;
 * /*For multiple image upload*/
    $image_uri = pco_image_field( $this, $instance,
   array( ‘field’ => ‘image_uri’ );
 * if ( $image_uri != ” ) :
    echo ‘<p></p>’; endif; ?> <p><label for=”<?php echo
   $this->get_field_id(‘image_uri’); ?>”><?php _e(‘Upload image.’, ‘abc’); ?></label
   ></p> <p><input type=”button” class=”button button-primary custom_media_button”
   id=”custom_media_button” name=”<?php echo $this->get_field_name(‘image_uri’);?
   >” value=”Upload Image” style=”margin-top:5px;” /></p> <p><input class=”widefat
   custom_media_url” id=”<?php echo $this->get_field_id( ‘image_uri’ ); ?>” name
   =”<?php echo $this->get_field_name( ‘image_uri’ ); ?>” type=”text” value=”<?php
   echo $image_uri; ?>” size=”3″ /></p>
 *  <p>
    <label for=”<?php echo $this->get_field_id(‘content’); ?>”><?php _e(‘CSR
   Content’, ‘abc’); ?></label> <textarea class=”widefat” id=”<?php echo $this->
   get_field_id(‘content’); ?>” name=”<?php echo $this->get_field_name(‘content’);?
   >”><?php echo $content; ?></textarea> </p>
 *  <?php
    }
 * How should i use it in
 * function update($new_instance, $old_instance) & function widget($args, $instance)
   function. Kindly help me out for the same.

Viewing 1 replies (of 1 total)

 *  Anonymous User
 * (@anonymized-7837873)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-working-381/#post-8270047)
 * The plugin is working. Are you looking for a gallery-like feature? Multiple image
   upload from one button is not supported.
 * You could add more than one button to the widget though, giving each one a different
   field name. See here… [https://wordpress.org/plugins/pco-image-widget-field/installation/](https://wordpress.org/plugins/pco-image-widget-field/installation/)

Viewing 1 replies (of 1 total)

The topic ‘Plugin Not Working’ is closed to new replies.

 * ![](https://ps.w.org/pco-image-widget-field/assets/icon.svg?rev=975541)
 * [PCo Image Widget Field](https://wordpress.org/plugins/pco-image-widget-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pco-image-widget-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pco-image-widget-field/)
 * [Active Topics](https://wordpress.org/support/plugin/pco-image-widget-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pco-image-widget-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pco-image-widget-field/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-working-381/#post-8270047)
 * Status: resolved