Hi can anyone tell me a good way to use a custom image size with a custom field image in a template without using something like timthumb/phpthumb.
I’ve set an image size with…
add_action( 'after_setup_theme', 'theme_setup' );
function theme_setup() {
add_image_size( 'theme-custom-size', 329, 118, true );
}
which is fine for the featured image, I just call
the_post_thumbnail( 'theme-custom-size' );
but could I apply this size to an image grabbed with get_post_meta from a custom field image.
Thanks!
EDIT:_
ok, I think a simple way to do it would be to use this plugin http://wordpress.org/extend/plugins/multiple-post-thumbnails/
and use multiple featured images rather than custom fields.
when you get image form post_meta, you get the path to the image, then you get do something like :