Wrights HQ

A blog by Ian Wright - Front-end web developer

When you register a custom image size via add_image_size(), or you install a module which uses custom images sizes to extend WordPress’s defaults – thumbnail, medium & large, all registered image sizes are added to the global variable $_wp_additional_image_sizes.

While you are developing, you can place the following code within any of your template files to display an array of all registered sizes available, including the image size attributes: name, width, height & crop.

<h4>Registered Images Sizes</h4>
print '<pre>';
  global $_wp_additional_image_sizes;
  print_r( $_wp_additional_image_sizes );
print '</pre>';