"JAUHARI | Everything Is POSSIBLE" - 1 new article
Resize Images using Shortcode with TimThumbTimThumb is wonderful image re-sizer so far, with TimThumb we can easily re size image on the fly. Without any worries. TimThumb support cache so load our server more stable. On today WordPress Tricks I will show you nicely tricks from Chad Coleman. Integrated TimThumb with Shortcode and make re size image more easy and useful. We need to re write this code on our // Image resize in content function timmyimg($atts, $content = null) { extract(shortcode_atts(array( 'w' => '540', 'h' => '250', 'class' => 'alignnone', 'alt' => '' ), $atts)); return " Then save it, this code have default width and height size, on this example the default width is 540 and default height 250. How to use TimThumb shortcode? It’s easy. Check this example below [img w=540 h=200 class=alignleft alt=My Photo]http://mysite.com/photo.jpg[/img] That’s it, you can use this shortcode More than one in single post. Thanks for Chad Coleman for this tutorial. Related posts:
More Recent Articles |
Click here to safely unsubscribe now from "JAUHARI | Everything Is POSSIBLE" or change your subscription or subscribe
Unsubscribe from all current and future newsletters powered by FeedBlitz
Your requested content delivery powered by FeedBlitz, LLC, 9 Thoreau Way, Sudbury, MA 01776, USA. +1.978.776.9498 |