rinatkhaziev / wp-frontend-uploader

WordPress plugin that allows your visitors to upload media from the front-end
53 stars 52 forks source link

Setting post type sets wrong post_type in database #61

Closed dennismonsewicz closed 10 years ago

dennismonsewicz commented 10 years ago

I enabled the post type of "Products" (I am using WooCommerce) so that the form can allow for users to upload items into the overall store, but when I upload a file using [fu-upload-form post_type="product"], when I check the UGC under products, no file exists, but the file is under the UGC under the media settings tab.

How do I get the uploaded files to show up under the correct post type? Currently, the post_type that is saved in the DB is attachment.

rinatkhaziev commented 10 years ago

You need to modify your shortcode to be either [fu-upload-form form_layout="post" post_type="product"] or [fu-upload-form form_layout="post_media" post_type="product"]