add_image_size() stops working
-
Hi, i have an issue and need help, since i moved to this new hosting the add_image_size() stops working..
I call post-thumbnails.php in to functions.php using this:
require_once(TEMPLATEPATH . ‘/includes/post-thumbnails.php’);this is the function inside post-thumbnails.php:
if ( function_exists( ‘add_theme_support’ ) ) {
add_theme_support( ‘post-thumbnails’ );
add_image_size( ‘featured-thumb-small’, 200, 130, true );
add_image_size( ‘featured-thumb-large’, 430, 410, true );
add_image_size( ‘home-entry-thumb’, 150, 150, true );
add_image_size( ‘entry-bottom-thumb’, 100, 60, true );
add_image_size( ‘entry-blog-thumb’, 50, 50, true );
};Example in the template:
<?php the_post_thumbnail(‘entry-blog-thumb’, array(‘class’ => ‘entry-thumb’)); ?>
always worked, but now I changed my hosting and does not work.. anyone have a clue?
- The topic ‘add_image_size() stops working’ is closed to new replies.