Get red with timthumb php script for image resizing with wordpress themes

Sponsors

We all know what is the tumthumb script. mainly the worpdress theme developers used the tumthumb php script for resizing the images.

But now we dont need to use the tumthumb script in wordpress theme because wordpress api is supporting the similier functionality in wordpress.

Using the wordpress hook we can specify the thumbnail size.

You can set the post image thumbnail size using wordpress hook.

Just copy paste the following code in to your functions.php file


function custom_thumbnail_size() {
return 128; // or whatever you want
}
add_filter('wp_thumbnail_max_side_length','custom_thumbnail_size');
Get red with timthumb php script for image resizing with wordpress themes

Get red with timthumb php script for image resizing with wordpress themes

Incoming search terms:

You may like following Articles!

This entry was posted in wordpress, wordpress api and tagged , , , by Wordpress API. Bookmark the permalink.

About Wordpress API

API means Application Program interface. In Wordpress API we are giving all the information about wordpress API. We worked for many wordpress plugins and themes. We have expertise in PHP, Databases, Graphic Design, Ruby on Rails, Java, Wordpress, Drupal and many CMS. We always give you the best solutions about wordpress and other related topics in This Blog. We will give you always fresh tips and tricks and techniques about wordpress in this blog.

10 thoughts on “Get red with timthumb php script for image resizing with wordpress themes

  1. Great site you made here, looks so interesting! Great posts btw, makes a lot of sense and I can say I agree with ya. Hope you keep updating man, I will def be back to read up on more!!!

  2. Pretty good post. I just stumbled upon your weblog and wanted to say that I’ve actually loved studying your blog posts.Anyway I’ll be subscribing to your feed and I hope to read your post again soon

  3. Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>