How organize uploaded media in WP?
WordPress doesn’t support this natively, but there are many different plugins out there that you can use for that purpose. Here’s a link to get you started in the right direction.
WordPress doesn’t support this natively, but there are many different plugins out there that you can use for that purpose. Here’s a link to get you started in the right direction.
The file types that you have specified ‘application/msword’, ‘application/vnd.ms-excel’, ‘application/pdf’ are already supported by media uploader. To see the default supported mime file types, call wp_get_mime_types() function. Use upload_mimes filter as shown in following code to make media uploader to accept files types other than the default. Add following code in your themes functions.php file … Read more
Strange but it works with same principle I was trying to. Maybe I had some grammer error. Here is a code if somebody will need it in future as there was nothing in search result: // get product media library $mediaArgs = array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘numberposts’ => -1, ‘post_status’ => null, … Read more
Ok, I found the problem. It wasn’t a WordPress problem, but a server issue. I had to add the file extension .mp4 with MIME type video/mp4 in the MIME types of the IIS server. Here is the link I found with the steps to correct the issue: http://forums.asp.net/t/1470612.aspx/1 1) Select the site to configure in … Read more
I contacted my hosting provider to solve this problem and they claim that my wordpress is generating too many simultaneous connections to server… The only times I’ve seen hosts put limits on the number of MySQL connections is when the host is free or very cheap or incompetent. Is it free hosting? It’s really easiest … Read more
So I worked out what I was looking for. It seems that all images, when edited or uploaded, have something passed through wp_update_attachment_metadata and so I can hook into that to get the info I need.
Right, I’ve managed to solve the problem. Maybe this answer helps other people who encounter the issue again. The problem is inherently in the installation procedure when installing via the package manager in ubuntu. The actual issue was in the database configuration, the installation had set WP_CONTENT_DIR to /srv/www/wp-content/localhost, a directory I did not even … Read more
Yes, there is actually a filter hook to change JPEG compression ratio. You could add these lines to your functions.php: add_filter( ‘jpeg_quality’, ‘jpeg_custom_quality’ ); function jpeg_custom_quality( $quality ) { return 70; } You may change 70 to whatever value you want.
This is an old question but for the record, there is a command line ExifTool Win & Mac versions found here: http://www.sno.phy.queensu.ca/~phil/exiftool/ exiftool mypic.jpg -title=”A new title” Would change the title but there are hundreds of other tags you can change.
Sharing my thoughts on multiple issues you mentioned. Hoping one or two of the following would help… Firstly, you may visit your site’s wp-admin/options-media.php and uncheck the option “Organize my uploads into month- and year-based folders” Why can it only be attached to ONE post/page? An image can be attached to any number of posts … Read more