submit two file input fields in the same form

Here’s what I think is happening. I’ve added comments to the relevant sections of your code. // You use the $_FILES superglobal to get the uploaded files. if (isset($_FILES[‘file_metabox’])) { $file_metabox = $_FILES[‘file_metabox’]; foreach ($file_metabox[‘name’] as $key => $value) { if ($file_metabox[‘name’][$key]) { // … // Here you **overwrite** the $_FILES superglobal. $_FILES = array(“file_metabox” … Read more

WordPress Favicon not Working For Images/Videos/PDFs

When opening media files only the file is loaded and not the html head of your file. You can add a ‘favicon.ico’ file (‘.png’ may also work – not sure) to your root directory (‘public_html/’, ‘www/’ ‘domain.com/’ depending on server setup) and it should load even for media files as browsers are automaticly looking for … Read more