Add attachment with submission form

Support MB Frontend Submission Add attachment with submission formResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44659
    luigi gaudinoluigi gaudino
    Participant

    Hi! what is the correct way to add a attachments using mb submission form instead of wordpress media modal?

    #44664
    PeterPeter
    Moderator

    Hello,

    If you don't want to use the WP media modal, you can use the field type image_upload or image. It doesn't open the modal when selecting an image to upload.
    Please follow the documentation
    https://docs.metabox.io/fields/image-upload/
    https://docs.metabox.io/fields/image/

    #44677
    luigi gaudinoluigi gaudino
    Participant

    I think I explained myself badly: I intended to create an attachment-type post with the classic main image but use frontend submission to do so

    #44684
    PeterPeter
    Moderator

    Hello,

    I understand your question. Currently, there isn't an option to upload media (attachment post type) in the frontend like the WordPress library in the backend.
    It could be so complicated if you use the custom code, please follow this topic https://wordpress.stackexchange.com/questions/194090/what-is-the-different-between-an-attachment-in-wp-posts-and-an-attachment-in-wp

    #44687
    luigi gaudinoluigi gaudino
    Participant

    ok thanks. I already did it using custom code, i was just wondering if there was a way to do this using metabox.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.