WordPress.org

Ready to get started?Download WordPress

Forums

Frontend Uploader
[resolved] breaks, if type file is missing (3 posts)

  1. jnz31
    Member
    Posted 5 months ago #

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in ...../wp-content/plugins/frontend-uploader/frontend-uploader.php on line 390

    is the error i get, when i leave the file away.
    [input type="file" name="photo" id="ug_photo" description="Picture (optional)"]

    with this, it works, but without it wont. (actually i dont need this tool to upload files, but to create cpt with some cf)

    https://wordpress.org/plugins/frontend-uploader/

  2. Rinat Khaziev
    Member
    Plugin Author

    Posted 5 months ago #

    You need to change your shortocde to include form_layout:

    [fu-upload-form class="your-class" title="Upload your media" form_layout='post' post_type='myposttype']

    http://wordpress.org/plugins/frontend-uploader/faq/

  3. jnz31
    Member
    Posted 5 months ago #

    ah. you are righT. sorry, for not digging the archive, i forgot to check it first.
    thanks

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.