Support » Themes and Templates » Post Thumbnails Not Working?

Post Thumbnails Not Working?

  • Hello,

    I am having trouble with a theme that I have designed and developed myself.

    I am using post thumbnails on the homepage and single posts, and I need the images to be scaled correctly so they don’t look crunched or bad. So here’s what I have in my index.php file:

    <?php the_post_thumbnail( 'homepage-thumb', array() ); ?>

    And here’s what I have in my functions.php file:

    if (function_exists('add_theme_support')) {
    add_image_size( 'homepage-thumb', 176, 99 );

    But whenever I use the above code, you can see how the images look at http://staging.slackrmedia.com/wp/?themedemo=theme. They are uneven in width and that’s not what I wanted.

    Can anybody help me out? I would really appreciate it!


Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post Thumbnails Not Working?’ is closed to new replies.