wp_get_attachment_image returns different image size

Handle built in sizes right

I wrote a class that handles all the different stuff for built in image sizes.

  1. To redefine the built in sizes, use an extended class (the upper file in the linked source)
  2. To unset a class and skip it’s useage completely, just set w & h to 0.

http://static.steffenvogel.de/wp-content/uploads/2011/07/octocat_construction.gif

Click the octocat to view the gist 🙂

Leave a Comment