Support » Fixing WordPress » Thumbnail issues in portfolio

  • Resolved norrie


    I’m having an issue where I want the thumbnails on our portfolio page to come in at the size set for thumbnails in the media settings (174 x 126px) but it’s coming in at full size. I’ve remade the thumbnail and checked the uploads folder and can see that the thumbnail is the correct size. What am I missing?

    Page is

    My portfolio page looks like this:

    /* Template Name: Portfolio */
    <?php get_header(); ?>
    <div id="main-content">
    		$loop = new WP_Query(array('post_type' => 'portfolio', 'posts_per_page' => 24));
    	<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    		$custom = get_post_custom($post->ID);
    		$screenshot_url = $custom["screenshot_url"][0];
    		$website_url = $custom["website_url"][0];
            <div id="portfolio-item">
    		<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?> </a>
    		<h1><?php the_title(); ?></h1>
            <?php endwhile; ?>
    </div><!-- #content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Christine Rondeau


    Volunteer Forum Moderator

    Can yo try changing
    <?php the_post_thumbnail(); ?>


    <?php the_post_thumbnail( 'thumbnail' ); ?>
    I’ve had to do that in the past on some themes to ensure that the small image shows up.

    Brilliant! Thanks so much Christine. really appreciate it! Solved the same problem on my home featured images too.

    Christine Rondeau


    Volunteer Forum Moderator

    Yippee! Glad it worked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Thumbnail issues in portfolio’ is closed to new replies.