Based on your previous help I tried to allow users (authors) to upload files to their account.
So I'd need a bit of help with 2 (can I choose where the attachments go) and 3 (make them visible when user uploads them).
Thanks a lot.
OK, ignore point 2 , I got it 🙂
Just 3 I can't get it work.
I do not see that issue on my demo site. Can you please share the code that creates the field and some screenshots on your site?
And please make sure that you have the latest version of Meta Box AIO 1.15.5 or MB User Profile 1.8.2
OK, so these are screenshots of my custom fields settings.
I created one field for file upload for users. So I test it and add that file as a user via the front-end form. And after submission I'd like that file to be displayed in the user account page. So I created a view to display that field and I inserted its shortcode into My Account template. But the file is not visible in the account. It is an entry in my CPT but not in the user profile. I thought if I enable custom fields location for users, the files will go to users profiles as well.
And if I edit the user profile as an admin from the backend, and upload the file via the form directly from there, it is visible in the frontend in My account.
I hope it's clear... 🙂
So I kind of know what I am doing wrong but I don't know how to fix it.
How to make those attachments being saved in the user profile instead of any CPT?
To allow the users to upload files on the frontend to their profile, you need to use the profile shortcode. Please read more on the documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form
[mb_user_profile_info id="meta-box-id" submit_button="Submit" confirmation="Your information has been successfully submitted. Thank you."]
Here is the example: https://monosnap.com/file/XRr2i07B54v2lWHUJpIDs5B0dsuYzR
Ha, magic 🙂 Thank you.