Well, one of the last thoughts I left on in the previous blog post was figuring out how to change WordPress’s naming convention when it came to thumbnails. As you can imagine, one of the requisites of running this site is to make it as automated as possible… being able to upload photos and create galleries on the fly is one of the great features at my disposal.
Unfortunately, originally WordPress named the thumbnails it generated as such:
image-125×125.png, or image-500×281.png
Where the filename ended with its dimensions. Since I have to specify the URL of the thumbnail in order to create the main post image, this at first required me to log into FTP or navigate to the uploads directory in order to find the proper filename of the thumbnail*, which created a terrible break in my workflow.
A little digging around and I found a currently-suitable hack:
http://wordpress.org/support/topic/232241
That blog post showed me that in the media.php config file, found in the /wp-admin/includes/ folder, is a line of code:
$suffix = “{$dst_w}x{$dst_h}”;
At the moment I replaced the second half of that equation with “thumb,” which thusly names my thumbnails “image-thumb.png” and so on. Unfortunately this only allows me to keep one size of thumbnail, which screws me up as I’m currently trying to conceive of a more space-efficient way of letting users browse the entries (i.e. with smaller thumbnails), but until I can figure out how to modify that bit of code, it’ll have to do.

It‘s quiet in here! Why not leave a response?