Get URLs for All Sizes of Image via Admin Panel

This is a good idea. Thanks for suggesting it—going to use it. 🙂 You can add a column to the Media Library that outputs the paths. This will spit them all out. You could of course filter it to only show the sizes you actually want. Put in functions.php or similar. // Adds a “Sizes” … Read more

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

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.

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

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