Jump to content
Sign in to follow this  
cdhphoenix

Multiple Thumbnails Sizes for Blog

Recommended Posts

cdhphoenix

Im interested in having multiple thumbnail sizes for my posts. This is possible as I have been reading links such as: http://gavinsmith.me/2010/10/multiple-post-thumbnail-featured-image-sizes-in-wordpress/ and http://codex.wordpress.org/Function_Reference/set_post_thumbnail_size I want another option of a thumbnail size to be wide, across the width of the content page, i followed the instructions on both pages and placed this in my BASE functions.php:

if ( function_exists( 'add_theme_support' ) ) {
		add_theme_support( 'post-thumbnails' );
	        set_post_thumbnail_size( 350, 500, true ); // default Post     Thumbnail dimensions
		add_image_size( 'wide-thumbnail', 600, 999, true );
	}
That code above is suposed to work its way into my Media Settings in admin, but i don't see it there as an option......and lastly, there is apparently one code left to input,
the_post_thumbnail('wide-thumbnail');

both pages of instructions are quite vague in where to place this, they both simply say, place it in your "template file". Is is index.php? the loop? So unclear! This page is indicating to place it in my index.php, however it is not in hook form. I am so close! but I don't know where to put the last line of code! would it have to be a hook? My question is, how do i add the last line of code to index.php (if it is the page I'm supposed to add this too.) note - Anyone who sees any errors in my coding so far, please let me know. do I need to "add action" the code for placing in the index.php? Im stumped how to go about that. If any one here has had experience adding this function to their template, it would be awesome to get some feedback of how they accomplished this! :)

Share this post


Link to post
Share on other sites
catrina

I think that last line of code is already in function form and ready to be added as a hook. You can try it and see if it works out.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×