Added Custom Size on Your Post Thumbnails


Sponsored Links




Chadcoleman created wonderful tutorials, how to added Custom Size Post Thumbnail. All we need to do only put some functions and use it whatever and whenever you want.

Custom Size Thumbnail - Avril Lavigne

Custom Size Thumbnail - Avril Lavigne

Added this code on your functions.php

if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
	add_theme_support( 'post-thumbnails' );
	set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails
	add_image_size( 'my-custom-size', 405, 180, true );
}

That it’s, you have new custom size for you thumbnail and you can call it with Post Thumbnail Tricks

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

Function Reference/add image size « WordPress Codex

This plugin allows you to re-build the post thumbnails. Useful if you use add_image_size() after The plugin adds the thumbnails to your post sizes and you can add them Read More

Tutorial9 » Add Thumbnails to Wordpress with Custom Fields

through your post, I am using get_post_meta with a custom field to create a series of thumbnails I’ve added Custom the image size is 70×70. There is a note in your Read More

Using Custom Image Sizes in Your Theme and Resizing Existing

Now to enable post thumbnails for your theme The code for the custom image sizes will be added into medium, large, post-thumbnail. Adding a custom image size with a Read More

Practical Uses for the Post-Thumbnail Function in WordPress 2.9

as Thumbnail link and it will be added to your post: Displaying the post thumbnails know that the imgs I use in the custom themes I build, will always be the correct size Read More

van Weerd How to add featured image thumbnails to WordPress posts

Insert featured images as thumbnails in your post or I’m using a custom loop.php page to display the post excerpts. Make sure you have added the image size as Read More


2 Responses to Added Custom Size on Your Post Thumbnails

  1. Pingback: Tweets that mention Added Custom Size on Your Post Thumbnails # WordPress Tricks & Tips -- Topsy.com

  2. Cool! I wanted to add a news section on my site, and I need custom sized thumbs for that.
    I’ll see to give this one a go if I do not find a plug-in.
    Thanks!

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>