开发者

Force image size on WP custom field

开发者 https://www.devze.com 2023-02-13 02:00 出处:网络
I want to force the images smaller to the width=\"128px\" height=\"78px\". They are being pulled in with Wordpress custom field.

I want to force the images smaller to the width="128px" height="78px". They are being pulled in with Wordpress custom field.

HTML

     <?php $description = get_post_meta($post->ID, "project-thumb", $single = true);
if($description !== '') { echo $description; } ?>

For working example: Rollover to the right of the screen, (need JS enabled)and notice the oversized image http://www.warface.co.uk/clients/warface.co.开发者_JAVA技巧uk/the-london-police


Have you tried calling the image by its URL and running it through the free timthumb script?

Tutorial: http://c.hadcoleman.com/2008/06/adding-timthumb-to-your-wordpress-theme/

0

精彩评论

暂无评论...
验证码 换一张
取 消