Tag Info

Hot answers tagged

4

Directly accessing the filesystem for writing is evil... for most of the cases where people are actually doing that. If you're editing an image file, and it is in the wp-content/uploads directory, then you know, whatever. That's not the common case. Plugins and themes don't typically do that because they don't have to do that. WordPress has the code to do ...


2

Like it was said, WordPress only generate thumbnails in the new sizes of the new media uploaded. The old images' thumbs doesn't get generated automatically. For this situation, I strongly recommend the following plugin: http://wordpress.org/plugins/force-regenerate-thumbnails/ It is pretty simple and unobtrusive. It just adds a new item on the wp-admin ...


1

Asked the same question here. There is an extra step to fix this, as answered in my question.


1

This happens because capital letter like JPG,JPEG,GIP are not the allowed mime types in wordpress. For list of allowed mime types check the codex. Now to get your code work, you need to add the capital mime types into the allowed mime types. You can do it by adding the following code in your active theme's functions.php file add_filter( 'mime_types', ...



Only top voted, non community-wiki answers of a minimum length are eligible