About Katz Web Services
Katz Web Services is a web development company operated by Zack Katz.
-
Plugin Support Topics
Popular Posts
- Simple Vertical Align Plugin for jQuery
- How to Create a Custom RSS Feed in WordPress in 12 Lines of Code
- Contact Form 7 Modules - A Plugin
- iContact Widget for WordPress
- Gravity Forms Shortcode - A Detailed Explanation
- SEO WordSpinner Plugin - A Killer SEO Plugin for WordPress
- Weather Forecasts for WordPress - WP Wunderground Plugin
- jQuery validator annoyances
Tag Cloud
Javascript Interspire Shopping Cart Web Design eCommerce WP Plugins Plugin Denver Website Redesign Denver SEO CSS Search Marketing WordPress Plugins Code Shopping Cart Interspire Development Domains Links WordPress SEO Blogging SEO Design Search Engine Optimization Nofollow WordPress Development WordPress Google Google SEO Functions.php Optimization
Tag Archives: Attachments
Get medium image size in WordPress
Posted on May 27, 2008
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.