• 12-02-2010, 03:50:54
    #1
    Merhaba arkadaşlar.. wordpress sitemde kullanmak üzere bir arşiv sayfası hazırlıyordum validator.w3.org dan kontrol ettim hata çıktı. Bunu tamemen sorunsuz yapmama yardımcı olur musunuz teşekkürler..

    <?php
    /*
    Template Name: Sitemap
    */
    ?>
    <?php get_header(); ?>
            <div id="content" class="clearfix">
                <div id="left-col">
                    <div id="left-top">
                        <div class="left-content">
                            <h2 class="pink">Sitemap</h2>
                                <div class="divider"></div><br />
                    
                            <h2>Sayfalar</h2>
        
                            <ul>
                                <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' . __('') . '' ); ?>        
                            </ul>        
    
                            <h2>Kategoriler</h2>
        
                            <ul>
                                <?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>    
                            </ul>                                
                            
                <?php
            
                    $cats = get_categories();
                    foreach ($cats as $cat) {
            
                    query_posts('cat='.$cat->cat_ID);
        
                ?>
                
                    <h2 style="margin-top:10px !important; padding:0px;"><?php echo $cat->cat_name; ?></h2>
        
                    <ul>    
                            <?php while (have_posts()) : the_post(); ?>
                            <li style="font-weight:normal !important;"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - yorum (<?php echo $post->comment_count ?>)</li>
                            <?php endwhile;  ?>
                    </ul>
            
            <?php } ?>    
    
                        </div>
                    </div><div id="left-bottom"></div>
                </div>
                        </div>
        </div>
    <?php get_footer(); ?>
  • 12-02-2010, 12:04:17
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Hocam PM ile sitenizin linkini atarsanız ordan inceleyeyim bi.
  • 12-02-2010, 15:15:25
    #3
    Site Linkini Verin Bakalım Hocam. Yardımcı Oluruz...
  • 12-02-2010, 15:52:38
    #4
    Teşekkürler ederim ilgilenen arkadaşlara.. Linki yolladım.
  • 12-02-2010, 18:03:53
    #5
    3 Hata Var Arkadaşım. Tagları Kapamamışsın O Kdar. Bakıyorum.
  • 12-02-2010, 18:06:34
    #6
    Evet. Galiba Footer da Olması Lazım.
    # </div>
    # </body>
    # </html>

    Body Kodunun Üstündeki </div> Kodunu Sil. Birde Body kodunun Başlangıcı Yok. Onuda Header'a koyman lazım.