Post thumbnails-where do they appear? (5 posts)

  1. paulaeisenberg
    Posted 6 years ago #

    I just downloaded the nightly build, 2.9. I created a post with an image and set the image as a thumbnail. Is the thumbnail now supposed to appear with the excerpt on the front page? On the archive page? Or is a bit of code needed in a core file for it to work?

    From Doug Campbell's article:

    Post Thumbnails: add an image to be automatically displayed with the post in various views (main page, archives, etc.). The WordPress logo on this post is added with this feature, plus a filter I added to my theme’s functions.php file.

    I'm running Athualpa 3.4.4 theme.

  2. Oscar
    Posted 6 years ago #


    In the template you can use the function the_post_image() to place the image anywhere you choose. Here is how to call the new function and the parameters for WordPress thumbnail image sizes.

    <?php the_post_image(); ?>

    the_post_image(); // without parameter = Thumbnail
    the_post_image(’thumbnail’); // Thumbnail
    the_post_image(’medium’); // Medium resolution

  3. pentool
    Posted 6 years ago #

    That's all nice and interesting, but I'm running v2.9.2 and see no "Set Thumbnail" link in my post admin pages. What am I missing?

  4. Fredelig
    Posted 6 years ago #

    To add support for post thumbnails (and get admin-UI), add the following to your functions.php:

    add_theme_support( 'post-thumbnails' );

    You can read a lot more that and some "size-tricks" in Marks post:


  5. pentool
    Posted 6 years ago #

    Great, Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic