Why does wordpress generate more thumbnails than the 3 standard sizes?

WordPress generates more than 3 thumbnails or image sub sizes because there are actually more than 3 standard/core image sizes in WordPress. Moreover, themes and plugins can also register custom image sizes. 🙂 The 6+1 standard/core image sizes Default (4): Thumbnail, Medium, Large and Medium Large (medium_large), but only the first three that you can … Read more

Retrieving and Storing Images Linked from Other Domains on Local Server?

@Jan: The cache images plugin: http://blog.milandinic.com/wordpress/plugins/cache-images/ helped me with this, it does not on demand replace the links but rather goes through all links but basically does the same. One note on this: when I ran it on a small blog it worked pretty well. On another blog (http://edward.de.leau.net) it did a lot of posts … Read more

How to store media files in subdomain

You can move the uploads folder to the sub domain by doing this Open up your wp-config.php file, located at the root of your WordPress installation, and add the following code: define(‘UPLOADS’, ‘http://images.mydomain.com/uploads’); The codex specifies that it should be added before the line that says require_once(ABSPATH.’wp-settings.php’);. Make sure the uploads folder is writable.

add_image_size and add_filter(‘image_size_names_choose’, ‘my_custom_image_sizes’) not working with wordpress 3.5.2

I’m running WordPress 3.5.2. The following is an excerpt from my functions.php file, which correctly allows me to select a thumbnail size when I upload an image. // Basic setup for thumbnail support. function themeSetup() { add_theme_support(‘post-thumbnails’); add_image_size(‘tiny’, 128, 79); add_image_size(‘small’, 256, 158); add_image_size(‘medium’, 384, 237); add_image_size(‘large’, 512, 316); } add_action(‘after_setup_theme’, ‘themeSetup’); // Addes custom … Read more

Change Image URL to a CDN

Since the major adoption of Responsive Images and the addition of new srcset attribute to the <img> element. WordPress has to evolve too. WordPress 4.4 added the responsive images feature. If you inspect the src attribute it might point to the CDN, however, you still need to consider the srcset attribute which might still be … Read more

Uploading an image as featured image from frontend form

I have found the problem. Problem was in a .js file. This code is causing the problem : $et_contact_form.live(‘submit’, function() { et_contact_error = false; et_message=”<ul>”; $et_inputs.removeClass(‘et_contact_error’); $et_inputs.each(function(index, domEle){ if ( jQuery(domEle).val() === ” || jQuery(domEle).val() === jQuery(this).siblings(‘label’).text() ) { jQuery(domEle).addClass(‘et_contact_error’); et_contact_error = true; var default_value = jQuery(this).siblings(‘label’).text(); if ( default_value == ” ) default_value = … Read more