Title: Name=&quot;foo&quot; not working
Last modified: August 21, 2016

---

# Name="foo" not working

 *  [grafeco](https://wordpress.org/support/users/grafeco/)
 * (@grafeco)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/namefoo-not-working/)
 * I add this code in one page:
 * [fu-upload-form class=”your-class” title=” “]
    [input type=”text” name=”post_title”
   id=”title” class=”required” description=”Título”]
 * [select name=”foo” class=”select” id=”ug_select” description=”Elige una Categoría”
   values=”Carteles,Viñetas,Instagram,Twitter,Vídeos”]
 * [input type=”file” name=”photo” id=”ug_photo” class=”required” description=”Tu
   Imagen:”]
    [input type=”hidden” name=”action” value=””] [input type=”submit” 
   class=”btn” value=”Enviar”] [/fu-upload-form]
 * In name=”foo” :
    [select name=”foo” class=”select” id=”ug_select” description
   =”Elige una Categoría” values=”Carteles,Viñetas,Instagram,Twitter,Vídeos”]
 * Users select one option, but not saved in UGC.
 * More…(sorry…)
    I reading this post: [http://wordpress.org/support/topic/how-to-add-tags-1?replies=14](http://wordpress.org/support/topic/how-to-add-tags-1?replies=14)
 * Where I have to add this code?
    What functions.php?
 * /**************************************************************************/
   //
   Custom action to do any additional logic after attachment is uploaded function
   my_fu_after_upload( $media_ids, $success ) { // Iterate array with attachment
   ids foreach( (array) $media_ids as $media_id ) {
 *  // Term is just an example, all $_POST variables should be available to you
   
   $term = sanitize_text_field( $_POST[‘post_tags’] );
 *  wp_set_object_terms( $media_id, $term, ‘imagetype’, true );
    } } add_action(‘
   fu_after_upload’, ‘my_fu_after_upload’, 10, 2 );
 * /***************************************************************************/
 * Thanks for all!!!!
 * [http://wordpress.org/plugins/frontend-uploader/](http://wordpress.org/plugins/frontend-uploader/)

The topic ‘Name="foo" not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontend-uploader_81a69d.svg)
 * [Frontend Uploader](https://wordpress.org/plugins/frontend-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontend-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontend-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/frontend-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontend-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontend-uploader/reviews/)

## Tags

 * [select](https://wordpress.org/support/topic-tag/select/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * 0 replies
 * 1 participant
 * Last reply from: [grafeco](https://wordpress.org/support/users/grafeco/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/namefoo-not-working/)
 * Status: not resolved