I have setup a document manager post type. One of my custom fields are a file upload. Is it possible to designate a folder to upload the fiels to as I dont want the files mixed in with my Media Library? Even better, if the files could be loaded into folders that represent the categories created for the post type.
Thanks, looked at this solution which uploads directly to the root "uploads directory" but it also uploads to the media library which we don't want. Ideally want the file uploaded to a sub directory in uploads called "docs" only.
When a file is uploaded by Toolset/WordPress, it will always have an entry in Media Library. That's how WordPress uploads works. WordPress creates a new Media/Attachment post for every file uploaded. And Toolset just uses what WordPress offers.
If you want the post to not appear on the Media Library, you need to filter them or exclude them from it. And that will also require custom code. Check an example here https://wordpress.stackexchange.com/a/231201
Thank you, how would I target my CPT in the code provided in the link?
It is not really a complete working code. It is just for reference, so you can build the code that is relevant to your website.
Check the other reply too. https://wordpress.stackexchange.com/a/231210
However, as I already mentioned in the first reply, custom code is out of the scope of the support. Check our support policy https://toolset.com/toolset-support-policy/
If you are not comfortable with programming, consider hiring a developer. You will find our contractors contact on this page https://toolset.com/contractors/
My issue is resolved now. Thank you!