Forums

[resolved] WordPress 3: "Featured Image" linking to full size image, not actual thumbnail? (5 posts)

  1. websta
    Member
    Posted 1 year ago #

    Background: I am working on a theme using the WordPress 3 "Set Featured Image" function to display thumbnails on a category page here.

    However the image displayed is actually the full, original size image with a smaller width and height setting, causing the page to download slowly.

    I am calling the image via:
    <?php the_post_thumbnail(); ?>

    Question: Are there additional settings or coding so that the image called is the WordPress-resized thumbnail (imagename-150x150.jpg instead of imagename.jpg)?

  2. websta
    Member
    Posted 1 year ago #

    So, the "set featured post" function really does call the original image?

    Really?!?!

    Not to point out the obvious, but using full-size images slows down sites significantly.

    To avoid that slowdown, developers would have to resize the image on their own, upload it separately, and set that user-created-thumbnail as the featured image. This is a step backwards for WordPress.

    Why isn't the "feature" grabbing the -150x150 thumbnail?

    And is this the only info on this feature in the Codex: http://codex.wordpress.org/Post_Thumbnails ???

  3. websta
    Member
    Posted 1 year ago #

    oic...

    functions.php needs to have this added:

    set_post_thumbnail_size( 50, 50, true ); // 50 pixels wide by 50 pixels tall, hard crop mode

    and NOT this:

    set_post_thumbnail_size( 50, 50 ); // 50 pixels wide by 50 pixels tall, box resize mode

    Per: http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

    Hopefully, this information -- and more -- will be added to the Codex soon.

    P.S. Please come up with more clever (read: searchable) names for WordPress features in the future: Featured Images, Custom Post Types, capital-P-Pages, etc. I mean really. How confused do you want us to get? You couldn't have called them, like, "Thumbies," or "Snippets," or "Static Pages?" Anything unique will work. Heck, I wouldn't mind if you called them rover, fido and spot, just please use searchable feature names in the future.

  4. mykey
    Member
    Posted 1 year ago #

    great find!
    hopefully they'll take your suggestions.

  5. karmrajsinh
    Member
    Posted 1 year ago #

    hi i just want to know that how to get the featured image name not the image ?

Topic Closed

This topic has been closed to new replies.

About this Topic