Skip to main content
edited title
Link

Custom form for Assign multiple categories to Media Library upload

deleted 2 characters in body
Source Link

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I want to be able to do is have a user assign a document type prior to the upload and have that type translate into multiple category assignments per document kind, like this:

   Treasurer: Assign Categories A, B and upload file to media library 
   Minutes: Assign Categories, C, D and upload file to media library 
   Newsletter: Assign Categories, E, F and upload file to media library

I am aware of wp_handle_upload but have been unable to find anything showing how to use it to set the category at the time it uploads. Is that possible or is there a better way?

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I want to be able to do is have a user assign a document type prior to the upload and have that type translate into multiple category assignments per document kind, like this:

   Treasurer: Assign Categories A, B and upload file to media library 
   Minutes: Assign Categories, C, D and upload file to media library 
   Newsletter: Assign Categories, E, F and upload file to media library

I am aware of wp_handle_upload but have been unable to find anything showing how to use it to set the category at the time it uploads. Is that possible or is there a better way?

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I want to be able to do is have a user assign a document type prior to the upload and have that type translate into multiple category assignments per document kind, like this:

   Treasurer: Assign Categories A, B and upload file to media library 
   Minutes: Assign Categories C, D and upload file to media library 
   Newsletter: Assign Categories E, F and upload file to media library

I am aware of wp_handle_upload but have been unable to find anything showing how to use it to set the category at the time it uploads. Is that possible or is there a better way?

edited body
Source Link

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I want to be able to do is have a user assign a document type prior to the upload and have that type translate into multiple category assignments per document kind, like this:

   Treasurer: Assign Categories A, B and upload file to media library 
   Minutes: Assign Categories, C, D and upload file to media library 
   Newsletter: Assign Categories, E, F and upload file to media library

I am aware of wp_handle_upload but have been unable to find anything showing how to use it soto set the category at the time it uploads. Is that possible or is there a better way?

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I want to be able to do is have a user assign a document type prior to the upload and have that type translate into multiple category assignments per document kind, like this:

   Treasurer: Assign Categories A, B and upload file to media library 
   Minutes: Assign Categories, C, D and upload file to media library 
   Newsletter: Assign Categories, E, F and upload file to media library

I am aware of wp_handle_upload but have been unable to find anything showing how to use it so set the category at the time it uploads. Is that possible or is there a better way?

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I want to be able to do is have a user assign a document type prior to the upload and have that type translate into multiple category assignments per document kind, like this:

   Treasurer: Assign Categories A, B and upload file to media library 
   Minutes: Assign Categories, C, D and upload file to media library 
   Newsletter: Assign Categories, E, F and upload file to media library

I am aware of wp_handle_upload but have been unable to find anything showing how to use it to set the category at the time it uploads. Is that possible or is there a better way?

added 12 characters in body
Source Link
Loading
deleted 1618 characters in body
Source Link
Loading
added 40 characters in body
Source Link
Loading
added 102 characters in body
Source Link
Loading
Source Link
Loading