• Hi, i’m using this snippet https://core.trac.www.ads-software.com/ticket/15311 inside one of my themes and it works.

    But now i want to resize a picture loaded via a custom field (a simple picture url) i’ve used this inside my template, but isn’t working, it doesn’t get the url

    <?php
    						 $image_url = get_post_meta($post->ID, 'ep_item_first_photo', true);
    						 $image = vt_resize( $image_url,'' , 30, 30, true );
    						 ?>
    						<img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" />

    is there a way to use this method with custom fields and not with featured images ?

  • The topic ‘Native image resize method with custom field’ is closed to new replies.