[wp-hackers] Need direction on custom image handling

aesqe aesqe at skyphe.org
Thu Feb 12 15:21:04 GMT 2009


I've explained here how to add additional image sizes: 
http://wordpress.org/support/topic/235286

you'd need to modify the function that adds additional sizes to the 
array to check if the post is in certain category, or call the filter 
only if post is in certain category, or something along those lines :)


On 11.2.2009 2:35, Paul wrote:
> All,
>
> I'm not trying to tack away traffic from the SWFObject discussion but
> need some advice.
>
> I'm trying to find wrap my head around the attachment/image handling
> functions and figure out the best action/filter to hook into. I have a
> need to intercept an uploaded image and create two new sizes. I know WP
> comes with the thumb, medium and large option. I don't want to mess with
> these as they would effect the general user uploads. I need to check the
> parent post of the upload and if in a 'special' category create the
> other two sizes of the image.
>
> Where is this functionality? Any example would be appreciated.
>
>
> paul
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.233 / Virus Database: 270.10.21/1945 - Release Date: 02/10/09 17:44:00
>

-- 
-._______________KAWAII!_______________.-
Skyphe.org : It'll all make sense one day
http://skyphe.org .:. http://breedart.org


More information about the wp-hackers mailing list