Tag Info

New answers tagged

0

For posting images you should use the wordpress function media_handle_upload <?php if (isset($_FILES['text-two'])) require_once(ABSPATH . "wp-admin" . '/includes/image.php'); require_once(ABSPATH . "wp-admin" . '/includes/file.php'); require_once(ABSPATH . "wp-admin" . '/includes/media.php'); $attach_id = media_handle_upload( $_FILES['text-two'], ...



Top 50 recent answers are included