Menampilkan image thumbnail dari setiap post di halaman depan blog. Untuk Wordpress 2.7.1
Contoh:
screenshot from x-phoneshop.com
Pada WP Admin, pilihlah salah satu post yang akan dibuatkan image thumbnail-nya untuk dimunculkan di halaman depan.

http://localhost/wordpress27/wp-content/uploads/2009/01/sony_ericsson_w902_thumb.jpg<img src="" alt=""/><img src="http://localhost/wordpress27/wp-content/uploads/2009/01/sony_ericsson_w902_thumb.jpg" alt="image"/><?php if (have_posts()) : while (have_posts()) : the_post(); ?>. Baris ini adalah baris awal fungsi loop wordpress yang menampilkan semua post di halaman depan. Sebelumnya, pastikan CHMOD file index.php ke 777 untuk membuat file ini editable. Lalu copy code ini://show small image from custom field
T.A.C.T.I.C.A.L. move
$key=”the_excerpt_pict”;
echo get_post_meta($post->ID, $key, true);
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2>
Method full movie Godspeed psp
<small><?php the_time(’F jS, Y’) ?> <!– by <?php the_author() ?> –></small>
<div class="entry">
<?php
//show small image from custom field the_excerpt_pict
$key=”the_excerpt_pict”;
echo get_post_meta($post->ID, $key, true);
The Day After Tomorrow psp
?>
<?php the_content(’Read the rest of this entry »’); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<?php else : ?>
10. Klik tombol Update file untuk menyimpan hasil editing pada file index.php barusan.
11. Refresh halaman depan blog Anda untuk melihat hasilnya.
Damn ! tadi lupa nanyain cara instalasi WP 2.7. di BLoG nok….
Wah terimakasih atas ilmunya, ini yang saya cari…
Terima Kasih banyak om noviar , berkat artikel ini, 19 jam ku hari ini tidak sia2.
susah sekali abis ngubek2 Google selama 2 harian ternyata seperti ini caranya bikin thumbnail post
Terima kasih sekali lagi
gb
siiplah, thanks banget and salam kenal