Entries categorized as ‘WordPress’
This is for everyone who’s been trying to find out how to get the medium image size of a post attachment in WordPress:
You’ve got to send the function the ID you’re trying to get the medium images for.
$medium = wp_get_attachment_image_src($picture->ID, 'medium', false);
$med_url = $medium[0];
$med_width = $medium[1];
$med_height = $medium[2];
There are a lot more things you can find out by analyzing wp-includes/gallery.php.
Categories: Code · WordPress
Tagged: Code, WordPress, images, Attachments

I use LesterChan’s Download Manager plugin, and it’s great. Good interface, simple purpose.
I recently found out that after upgrading a client’s site to WP 2.5, WP-DownloadManager was no longer working. I followed the documentation on the plugin website, including resetting the permalink structure, but nothing worked.
For some reason the re-write wasn’t working properly: all the downloads were giving 404 errors. I couldn’t figure it out, so I dove into the code. I found the part of the plugin that rewrites the download links, and found the problem. (more…)
Categories: Code · WordPress
Tagged: Code, Download, plugin, WordPress
The plugin has been updated. The multitudes may celebrate fewer clicks!
As sad as it is to admit (since the plugin has saved me thousands of clicks), Admin Drop Down Menu by Ozh breaks the WordPress image uploader. If you’ve tried everything WordPress tells you to do in order to fix that Image Gallery feature and multiple image upload capability in WordPress 2.5, and disable this plugin.
WordPress 2.5 help pages
After following each step recommended, I had to disable the plugin. What a shame!
Categories: WordPress
Tagged: admin, compatibility, errors, gallery, help, image uploader, plugin, WordPress, wordpress 2.5