image upload
-
hi,while i am using this plugin image is not uploaded while debugging i come across that while commenting the following line its works
“// Now, we need to actually create a post so that this shows up in the media uploader
$img_url = media_sideload_image( $comment_image_file[‘url’], $post_id );// And strip out the name of the image file so we can save this to the meta data
// Regex is usually bad for this, but WordPress is predictable in the format
preg_match_all( “#[^<img src=’](.*)[^’alt=” />]#”, $img_url, $matches );
$comment_image_file[‘url’] = $matches[0][0];”“media_sideload_image “
this function does insert image in media library and gives me an error let me tell you i m working on local with 2012 theme.please tell me what i m missing or doing something wrong.
- The topic ‘image upload’ is closed to new replies.