download images from wp-content/uploads/year/month/DSC_123.jpg

Thank you for all the answers, when I try mywebsite.com/wp-content/uploads/2018/01 access is denied, but I found there is tool called Fusker for exact thing I asked. It was online tool, I just entered website URL and it scanned for such files and got em all. Hope this will help someone who searches fo smt similar. … Read more

SVG upload does not work

WordPress doesn’t allow to upload SVG files by default. Add svg file type in allowed file types list function wp_mime_types($mimes) { $mimes[‘svg’] = ‘image/svg+xml’; return $mimes; } add_filter(‘upload_mimes’, ‘wp_mime_types’); Fix for displaying svg files in media library function wp_fix_svg() { echo ‘<style type=”text/css”> .attachment-266×266, .thumbnail img { width: 100% !important; height: auto !important; } </style>’; … Read more

Create multiple folders in upload media folder

Welcome to WPSE. Unfortunately no, that is not possible. Depending on your Media settings files uploaded to the Media Library either go directly to the Uploads directory or are organized into month- and year-based subdirectories within Uploads. You’ll need to find and use some existing plugin, or create one of your own, to achieve other … Read more

Limit users to specific uploads

Add this code in your Functions.php. This code help you to show user only their own uploads but admin can see all media uploaded by other users and this code is tested on current wordpress Version 5.8 // Limit media library access add_filter( ‘ajax_query_attachments_args’, ‘wpb_show_current_user_attachments’ ); function wpb_show_current_user_attachments( $query ) { $user_id = get_current_user_id(); if … Read more

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