Viewing 4 replies - 1 through 4 (of 4 total)
  • Add this to your functions.php

    if (function_exists(‘add_theme_support’)) {
    add_theme_support(‘post-thumbnails’);
    }

    Then on your template

    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail(‘thumbnail’);
    } else {
    ?>
    <img src=”<?php bloginfo(‘template_url’); ?>/images/no-thumbnail.gif” width=”150″ height=”150″ alt=”<?php the_title(); ?>” />
    <?php } ?>

    While you add new @ edit post, you will see one widget called Featured Image. Use it to set the featured image

    Thread Starter makedonas

    (@makedonas)

    Dear Kongkang thank you for the quick reply.

    I am using timthumb.php to call the thumbnails on my front page. The script looks for a custom field named thumb with the url of the image. If it exists then it generates and displays the thumbnail.

    I want to use the same custom field to display the same thumbnails on the category page (http://img707.imageshack.us/img707/5465/mrama.jpg)

    How this extra info affects your solution?

    Tutorial you can follow how to add thumbnail to your category page. http://new2wp.com/?p=642

    Thread Starter makedonas

    (@makedonas)

    Thanks kongkang, I know now what I should do.

    regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to put thumbnails in articles when they appear in the category pages’ is closed to new replies.