Is it possible to resize my image uploads to different settings, depending on what custom field I’m on?

I’m using wpalchemy, and have an image uploader for a heap of different custom fields. It would be great if I could detect which custom field I’m currently on, and have different dimension options.

For example, if the custom field is my_special_image, I could stipulate 960x200px hard cropping, similar to featured posts.

2 Answers
2

Have you considered using WP’s add_image_size function? Here’s the Codex entry.

Basically you could add all the sizes you require throughout your theme via your functions.php and then call the appropriate size in your page/post template.

Good luck!

Leave a Reply

Your email address will not be published. Required fields are marked *