WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Different Post Images (7 posts)

  1. uptowngirlvip
    Member
    Posted 3 years ago #

    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?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

  3. uptowngirlvip
    Member
    Posted 3 years ago #

    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?

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    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

  5. uptowngirlvip
    Member
    Posted 3 years ago #

    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.

  6. uptowngirlvip
    Member
    Posted 3 years ago #

    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/

  7. uptowngirlvip
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic