• 18-01-2009, 22:37:40
    #1
    Arkadaşlar hc magazine temasını kullanıyorum. (hc)hakkı ceylan'dan yardım istedim aşağıdaki kodu verdi. ama bi türlü yapamadım. araştırdım hiç bi yerde bulamadım.

    okuma ayarlarında en fazla göster yerini mesela 25 yaptığımızda.
    anasayfada ve kategorinin olduğu sayfada 25 yazı görükür.

    ben kategori sayfasında istediğim kadar yazı göstermek istiyorum mesela 10.


    Mailden Alıntı:
    ""
    eğer yoksa category.php adında yeni bir dosya oluşturun

    sonra tasarıma göre single.php ya da index.php kodalarının aynısını kullanın fakat döngü aşağıdaki şekilde olsun

    <?php query_posts($query_string.'&posts_per_page=10'); while(have_posts()) { the_post();

    <!-- Bu kısıma döngü içindeki kodları yerleştirin -->

    }
    ?>


    ""


    arkadaşlar bi yardımcı olun lütfen
  • 18-01-2009, 22:45:47
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    category.php olarak değil archive.php olarak kaydedin.
  • 18-01-2009, 22:54:21
    #3
    archive.php dosyası zaten mevcut. aşağıdaki kodlar mevcut.


    "
    <?php get_header(); ?>
    <?php include(TEMPLATEPATH."/hc-conf.php");?>
    <div id="sayfa">
    <div id="sayfa_sol">

    <div class="sayfalar">
    <p align="center"><?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { posts_nav_link(' — ', __('&laquo; Önceki'), __('Sonraki &raquo;'));} ?></p>
    </div><!--sayfalar-->
    <?php $post = $posts[0]; ?>
    <?php if (is_category()) { ?>
    <h3><?php echo single_cat_title(); ?> kategorisine ait tüm yazılar</h3>
    <?php }
    elseif(is_tag()) { ?>
    <h3><?php single_tag_title(); ?>, etiketli tüm yazılar</h3>
    <?php }
    elseif (is_month()) { ?>
    <h3><?php the_time('Y F'); ?> ayındaki tüm yazılar</h3>
    <?php }
    elseif (is_year()) { ?>
    <h3><?php the_time('Y'); ?> deki tüm yazılar</h3>
    <?php }
    elseif (is_search()) { ?>
    <h3>Arama Sonuçları</h3>
    <?php }
    elseif (is_author()) { ?>
    <h3>Yazar ArÅŸivi</h3>
    <?php }
    elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <h3>ArÅŸiv</h3>
    <?php } ?>

    <br/>
    <div class="cizgi"></div>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h1><a title="<?php the_title(); ?> izle indir yukle , bedava <?php the_title(); ?> izle " href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <p class="info">Yazan: <?php the_author() ?> | <?php the_time('d F Y'); ?> | <?php comments_popup_link('Yorum yok', '1 yorum', '% yorum'); ?> | Kategoriler: <?php the_category(', ') ?></p>

    <?php $values = get_post_custom_values("resim");if ($values[0]!=""): ?>
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <img class="habersag_resim" src="<?php $values = get_post_custom_values("resim"); echo $values[0]; ?>" alt="<?php the_title(); ?>" style="width:200px;height:270px;"/>
    </a>
    <?php endif; ?>


    <?php the_excerpt(); ?>

    <div class="cizgi"></div>

    <!-- <?php trackback_rdf(); ?> -->

    <?php comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; else: ?>
    <?php endif; ?>

    <div class="sayfalar">
    <p align="center"><?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { posts_nav_link(' — ', __('&laquo; Önceki'), __('Sonraki &raquo;'));} ?></p>
    </div><!--sayfalar-->

    </div><!--sayfa_sol-->
    <?php get_sidebar(); ?>
    </div><!--sayfa-->
    <?php get_footer(); ?>
    "
  • 18-01-2009, 22:56:44
    #4
    Alıntı
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    yerine
    Alıntı
    <?php query_posts($query_string.'&posts_per_page=10'); while(have_posts()) { the_post();
    olarak değiştirin archive.php dosyasında.
  • 18-01-2009, 23:25:22
    #5
    hata veriyor arkadaşım.