Title: Category assignment not working
Last modified: August 21, 2016

---

# Category assignment not working

 *  Resolved [Emil](https://wordpress.org/support/users/qu1em/)
 * (@qu1em)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/category-assignment-not-working-1/)
 * Hi,
 * When users submit the form I want the post that is created to be posted under
   a category with the ID 19. I have whitelisted the category in the settings and
   the code I’m using is:
 *     ```
       [fu-upload-form category="19" form_layout="post_image" title=""]
       [input type="text" name="post_title" id="title" class="required" description="Titel (krævet)" multiple=""]
       [textarea name="post_content" class="textarea" id="ug_caption" description="Beskrivelse (valgfrit)"]
       [input type="file" name="photo" id="ug_photo" class="required" description="Billede(r) (krævet)" multiple=""]
       [input type="submit" class="btn" value="Tilføj"]
       [/fu-upload-form]
       ```
   
 * The posts are posted in the default category (ID 1). The form can be seen [here](http://kontaktpersonsforeningen.dk/mediecenter/galleri/).
 * [http://wordpress.org/plugins/frontend-uploader/](http://wordpress.org/plugins/frontend-uploader/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [the5kyliner](https://wordpress.org/support/users/the5kyliner/)
 * (@the5kyliner)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/category-assignment-not-working-1/#post-4084759)
 * Same problem here.
 * But there’s a workaround:
 * in line 745
    \wp-content\plugins\frontend-uploader\frontend-uploader.php
 * add “category” to shortcode attributes, so it looks like this
    [http://pastie.org/8290895](http://pastie.org/8290895)
 * Hope this will be fixed soon.
 *  Thread Starter [Emil](https://wordpress.org/support/users/qu1em/)
 * (@qu1em)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/category-assignment-not-working-1/#post-4084762)
 * Great! It worked. Thank you!
 * In my experience the developers of this plugin are fairly quick to fix bugs and
   this one is easy so it’s probably going to be fixed in the next version.
 * I’ll leave it for one of the developers to mark this thread as resolved as soon
   as they’ve seen this 🙂
 *  Plugin Author [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * (@rinatkhaziev)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/category-assignment-not-working-1/#post-4084815)
 * Thanks guys,
 * I committed the5skyliner’s patch and will release it with a new version.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Category assignment not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontend-uploader_81a69d.svg)
 * [Frontend Uploader](https://wordpress.org/plugins/frontend-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontend-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontend-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/frontend-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontend-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontend-uploader/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/category-assignment-not-working-1/#post-4084815)
 * Status: resolved