Denver Web Design & Denver SEO - The Katz Web Design Blog

Entries categorized as ‘WordPress’

Get medium image size in WordPress

May 27, 2008 · No Comments

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: , , ,

How I fixed WP-DownloadManager 404 errors

May 13, 2008 · 3 Comments

Lester Chan\'s header
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: , , ,

Admin Drop Down Menu plugin does not break WordPress 2.5 Image Uploader [updated]

April 4, 2008 · 3 Comments

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: , , , , , , , ,