function recentPosts() {
    $rPosts = new WP_Query();
    $rPosts->query('showposts=5');
    while ($rPosts->have_posts()) : $rPosts->the_post(); ?>




  • wp_reset_query();
    }
    ?>


Direkt kopyala yapıştır yaptım. CSS'de düzenlemen gerekir.
.sonyazilar{}
.sonyazilar li{}
.sonyazilar li a{}
.sonyazilar li img{}
.sonyazilar li h2{}

Bunları CSSde düzenleyip istediğin şekil yaparsın. Bu PHP kodunuda son 5 yazıyı göstermek istediğin yere yapıştırırsın.