• Hi there,

    I followed your guideline but unfortunately couldn’t find a way to implement the attaching of the media on the current post.

    Can you please clarify which codelines to add where, to get the automatic attachment of the uploaded files?

    Here is what i tried:

    on the frontend:
    <?php echo do_shortcode('[wp-dropzone dom-id="' . $ID . '" id="' . $ID . '" remove-links="true" thumbnail-width="80" thumbnail-height="80" guest-upload="false" callback="sending: function(file, xhr, formData) {formData.append("id", "' . $ID . '");}" ]'); ?>
    where $ID is the current posts wordpress ID

    in your core-functions.php:
    I changed 'post_content' => '' to 'post_content' => $_REQUEST['id']

    Unfortunately nothing changes and I don’t know how to get this working.
    Any help would be much appreciated!

    • This topic was modified 6 years, 6 months ago by jakeinsane.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Attach media to current post’ is closed to new replies.