• 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://ww.wp.xz.cn/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://ww.wp.xz.cn/plugins/frontend-uploader/

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