paulaeisenberg
Member
Posted 2 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.
http://designora.com/tools/wordpress-tricks-oembed/
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
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?
Fredelig
Member
Posted 1 year 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:
http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/