Blogs, Josh's Blog

Wordpress. Fight!

So Wordpress magically started not working correctly with images. When you upload an image to Wordpress it resizes it to three different sizes and let’s you pick which one you want. For some reason it is realizing it’s doing that anymore. By realize I mean it’s resizing them, it just doesn’t list them as options. The problem with this is that things use this:

wp_get_attachment_thumb_url

That should return the url of the smallest image, the thumbnail. If there isn’t a thumbnail it should return ‘false’, instead it’s returning the url of the original image size. So I had to rig it up real quick and do a str_replace() to replace ‘.jpg’ with ‘-150×150.jpg’. This sucks because it still isn’t working on the backend.

If you have any clue how to fix this email me, josh at -getridofme-golgotron.com. I don’t have much faith in anyone answering my post on the Wordpress Support forums, but you never know.

  • Twitter
  • Digg
  • Reddit
  • Delicious
  • StumbleUpon
  • Share/Bookmark

1 Comment

  • On 07.17.09 Jason Cypret said:

    Did you figure this out? I wasn’t to change the dimensions of my uploaded images (thumbnail, medium and large) but don’t want to have to re upload them 1 by 1 to have them re sized by WP. I’m looking for a plugin or code to add to my theme functions to rebuild the image cash.

    -Cheers!

speak

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

*Required Fields