Support » Plugin: Frontend Uploader » PHP CODE

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rinat Khaziev


    Theoretically, you can add it like this:
    do_shortcode( '[fu-upload-form] but you might need to pass additional parameters to the shortcode

    Hi, just my 2 cents:

    Rinat approach is correct. But if you don’t want to get any kind of issues, you have to assign a variable with your shortcodes. Example:

    $fu = '[fu-upload-form class="validate" form_layout="post_image" post_type="post_image" title=""]'.PHP_EOL;
    $fu .= '[input type="text" name="post_title" id="ug_post_title" class="required" description="Post Title"]'.PHP_EOL;
    $fu .= '[input type="file" name="photo" id="ug_photo" class="required" description=""  multiple="true"]'.PHP_EOL;
    $fu .= '[input type="text" name="name" id="ug_name" description="Customer Name"]'.PHP_EOL;
    $fu .= '[input type="text" name="email" id="ug_email" description="Customer Email"]'.PHP_EOL;
    $fu .= '[input type="submit" class="btn" value="Send Files"]'.PHP_EOL;
    $fu .= '[/fu-upload-form]';
    echo do_shortcode($fu);



    Thanks a lot for the plugin!

    Is there template tag instead of using do_shortcode ?

    Thanks in advance!

    Plugin Author Rinat Khaziev



    You’re quite welcome.

    Unfortunately there’s no template tag right now, and I can’t really promise there’ll be one in the near future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP CODE’ is closed to new replies.