aşağıdaki kodları site-hatirasi.php olarak tema klasörü içine kaydedin. sonra yeni bir sayfa oluşturup sağ taraftan sayfa şablonu olarak Site Haritasını seçin. Sayfa başlığını verip içeriğini boş bırakıp kaydedin. koddaki css betimlemelerini kendinize göre düzenler, seçicieri style.css içinde tanımlarsanız istediğiniz görüümü de elde etmiş olursunuz.
<?php
/*
Template Name: Site Haritası
*/
?>
<?php get_header(); ?>
    <div class="post">
        <h2 class="title"><?php the_title(); ?></h2>
            <div class="entry">
            
                <h3>Sabit Sayfalar</h3>
                    <ul>
                        <?php wp_list_pages('depth=0&sort_column=menu_order&title_li=' ); ?>
                    </ul>
                    
                    <h3>Kategoriler</h3>
                    <ul>
                        <?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>
                    </ul>
                    
                    <h3>İçerik Listesi</h3>
                        <?php
                            $cats = get_categories();
                            foreach ($cats as $cat) {
                            query_posts('cat='.$cat->cat_ID);
                        ?>
                            <h4><?php echo $cat->cat_name; ?></h4>
                                <ul>
                                    <?php while (have_posts()) : the_post(); ?>
                                    <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - (<?php echo $post->comment_count ?> Yorum)</li>
                                    <?php endwhile;  ?>
                                </ul>
                            <?php } ?>
            </div><!-- /.entry -->
        </div><!-- /.post -->

<?php get_sidebar(); ?>        
<?php get_footer(); ?>