Adding new thumbnail size
-
I am trying to create a new thumbnail size to use on a specific category page as I want it to take up the full 400pixels width.
In my function.php file I have added this:
`if ( function_exists( ‘add_theme_support’ ) ) {
add_theme_support( ‘post-thumbnails’ );
add_image_size( ‘category-thumb’, 300, 9999 );}’
and then on my category-new-zealand-tours.php file I added this:
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( ‘category-thumb’ );
}
?>but it doesn’t seem to work. Any ideas what I’m doing wrong? Thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding new thumbnail size’ is closed to new replies.