joelyorca
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [WP Dropzone] Attach to current postThanks Nazmul, think I’m very close!
Is that in a shortcode do you mean? I’ve tried that like this
<?php echo do_shortcode('[wp-dropzone callback="sending: function(file, xhr, formData) { formData.append('id', id_of_dom_here); }"]'); ?>But I get error.. unexpected id
Forum: Plugins
In reply to: [WP Dropzone] Attach to current postWhere would I configure the sending event? As if doing so in your core functions file the Id wouldn’t be defined.
Could I call a custom function in the js file, like on success perhaps?
- This reply was modified 8 years, 3 months ago by joelyorca.
Forum: Plugins
In reply to: [WP Dropzone] Attach to current postHi Nazmul, I’m trying to use the id given in the shortcode to an attachments content (description). WP uses the the post_content value given in the array as the description so I thought I’d be able to set this as the id variable.
In your core functions where you create the $attachment array, I want to use the value here..
Ive tried
'post_content' => $idwith no luckWould yo be able to put me in the right track here?
Viewing 3 replies - 1 through 3 (of 3 total)