I am changing the main page of my blog just to show a post teaser instead of the full content. Does anyone know how to include an image that is different from the image that in included in the article?
I am changing the main page of my blog just to show a post teaser instead of the full content. Does anyone know how to include an image that is different from the image that in included in the article?
with featured image, which is implemented by the_post_thumbnail
http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature
Since I am using the 3.0 version and I don't see that as an option do I just cut/paste the
add_theme_support( 'post-thumbnails' )
to the functions.php file and it should work?
thats how to get it started, for instance I have this in functions.php
// THIS IS THUMBNAIL SUPPORT
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails
add_image_size( 'single-post-thumbnail', 300, 999 ); // Permalink thumbnail size
add_image_size( 'title-image', 50, 27 ); // Title mini photo
}
which registers 3 different thumbnail sizes I can use.
I then use the_post_thumbnail like this:
<?php the_post_thumbnail('single-post-thumbnail', array('class' => 'pageImage', 'alt' => 'Full Page Image')); ?>
to call to each of the registered images in my templates where I want them
OK, I am new to this so please stay with me as this is what I got:
I understand what you have in the first box except for the line:
add_image_size( 'title-image', 50, 27 ); // Title mini photo
What is a "Title Mini Photo"?
I don't understand where to place the last set of code you provided.
I was reading the instructions that you have on this link. Can you use this on the 3.0 version?
http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
This is an ideal link to visit to get all the know-how.
This topic has been closed to new replies.