• Resolved Lance

    (@techage)


    Hello, I was wondering if there was a way to attach the media to a custom post type post id when uploading.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, you can achieve it. Go to ‘wpday-dz-function.php’ on line 186, and replace
    $message['data'] = wp_get_attachment_url($attach_id); with $message['data'] = $attach_id;

    This will return the attachment id when uploading is success. Then you can use the to attach to a custom post type.

    arifbd26

    (@arifbd26)

    Hello
    I have a website (https://add.fastflybd.com/) where user can upload her product form font end.
    I want to change image uploder by your plugin.
    I setup it and show it on the fontend and also image upload is working.

    But how can it link the image with the product ?

    Or send me you contact information.
    [email protected]

    mdsabuz

    (@mdsabuz)

    After storing image ids, you can store the id of images and attach to the product. For custom work order contact us https://ximdevs.com/contact-us/

    mdsabuz

    (@mdsabuz)

    I presume the issue has been solved. Feel free to reopen it if necessary.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attach to post type’ is closed to new replies.