Set different max upload size limits based on file type/extension

This should work: function max_video_size( $file ) { $size = $file[‘size’]; $size = $size / 1024; $type = $file[‘type’]; $is_image = strpos( $type, ‘video’ ) !== false; $limit = 750; $limit_output=”750kb”; if ( $is_image && $size > $limit ) { $file[‘error’] = ‘Video files must be smaller than ‘ . $limit_output; } return $file; } … Read more

Recommended Media Size for Twenty Fourteen

Twenty Fourteen uses 2 custom media sizes: 672x372px for post thumbnail image size and 1038x576px for ‘twentyfourteen-full-width’ custom image size So for images uploaded after the theme is activated, these 2 size are created automatically, but for images uploaded before twentyfourteen is activated, an available size is used and image is resized via html/css properties. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)