• 01-11-2010, 12:37:31
    #1
    CS5
    Üyeliği durduruldu
    Arkadaşlar mesela bir yazı yazdım ve kategoride yayınladım şimdi mesela ben bir kategoride bulunan tüm yazıların başlıklarının bulundugu bir index sayfası yapmak istiyorum böyle bir eklenti varmıdır veya bunu manuel olarak yapabilirmiyiz..
  • 01-11-2010, 12:58:06
    #2
    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(); ?>
  • 01-11-2010, 14:28:48
    #3
    CS5
    Üyeliği durduruldu
    Hocam Teşekkür ederim Yalnız Ben Tek Kategori Yani 1 Kategoride Bulunan İçerikleri Listelemek İstiyorum
  • 01-11-2010, 14:43:51
    #4
    <?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
                                query_posts('cat=cat_ID');
                            ?>
                                <h4>Kategorisindeki Yaılar</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>
                </div><!-- /.entry -->
            </div><!-- /.post -->
    
    <?php get_sidebar(); ?>        
    <?php get_footer(); ?>
    query_posts('cat=cat_ID'); cat_ID kısmına içeriğini çekmek istediğiniz kategorinin ID'sin yazın.
  • 01-11-2010, 22:02:57
    #5
    http://crowdfavorite.com/wordpress/plugins/articles/
    eklentisi var fakat kategori seçmeye izin veriyor mu bilemiyorum.
  • 03-11-2010, 17:51:54
    #6
    bLog un damı Kullanıcaksın Bunu Yada Baska Bir Html Dosyasında php dosyasında mı Örnek Site blog adresin http://xxx.com/blog ama senin YazıLarın Ve KatagoriLerini Yazılarını Göstermek istediğin Html Dosyası ornek http://xxx.com gibimi ?