Support » Plugin: Frontend Uploader » PHP CODE

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

    (@rinatkhaziev)

    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:

    <?php
    $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);
    ?>

    Cheers,

    Hello!

    Thanks a lot for the plugin!

    Is there template tag instead of using do_shortcode ?

    Thanks in advance!

    Plugin Author Rinat Khaziev

    (@rinatkhaziev)

    Hey!

    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.