• 19-06-2014, 17:27:59
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    <?php
    query_posts('p=8');

    ?>

    Bu şekilde sayfa id si ile konu çekmeye çalıştım getirmedi, Bunun doğru kodlama biçimini verecek arkadaşlardan rica ediyorum.
  • 19-06-2014, 17:32:47
    #2
    <?php
    query_posts('post_id=8');

    ?>

    dener misin hocam?
  • 19-06-2014, 18:20:48
    #3
    onu denemiştim hocam olmadı. başka bir döndü buldum. array içindeki id leri silip birtanesini yazdım. $post_list = array(8); yaptım

    <?php
    $post_list = array(1,10,15,7,8);
    foreach( $post_list as $post_id ) :
    query_posts('p='.$post_id);
    while (have_posts()) : the_post();

    ?>
    <div class="icerik">
    <div class="baslik"><h1><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1></div>

    <div class="yazi">
    <?php the_content(__('(devamı...)')); ?>
    </div>
    </div>

    <?php endwhile; endforeach; ?>

    bununla çözdüm. daha kısa bir kod vardır belki