• 23-11-2009, 00:17:40
    #1
    arkadaşlar Wp' te istediğn kategoriyi çekme nasıl olur?
  • 23-11-2009, 00:24:53
    #2
    anlayamadım :S hocam nasıl yani
  • 23-11-2009, 00:25:48
    #3
    Mesela 20 tane kategori var diyelim
    ben oyun, şiir,fıkra kategorilerinin id'sini yazıcam sadece o kategoriler gelecek
  • 23-11-2009, 00:32:11
    #4
    Üyeliği durduruldu
    wp_list_categories('orderby=name&include=3,5,9,16' ); ?>

    gibisinden.
  • 23-11-2009, 05:01:04
    #5
    ghurjhan adlı üyeden alıntı: mesajı görüntüle
    wp_list_categories('orderby=name&include=3,5,9,16' ); ?>

    gibisinden.
    bu kategoriyi listeler..

                    <?php $recent = new WP_Query("cat=6&showposts=2"); while($recent->have_posts()) : $recent->the_post();?>
       <?php $recent = new WP_Query("cat=6,7,8,9,10,11&showposts=2"); while($recent->have_posts()) : $recent->the_post();?>
    showpost'u kaldırırsan listeleme de açılır yani sayfalama şeysi.

       <?php $recent = new WP_Query("cat=6,7,8,9,10,11"); while($recent->have_posts()) : $recent->the_post();?>
    konuları listeler..

    kullanımı:

                    <?php $recent = new WP_Query("cat=6&showposts=2"); while($recent->have_posts()) : $recent->the_post();?>
    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <?php the_content(__('Devamını Oku'));?>
    
                    <?php endwhile; ?>
  • 23-11-2009, 12:41:28
    #6
    anarschi adlı üyeden alıntı: mesajı görüntüle
    bu kategoriyi listeler..

                    <?php $recent = new WP_Query("cat=6&showposts=2"); while($recent->have_posts()) : $recent->the_post();?>
       <?php $recent = new WP_Query("cat=6,7,8,9,10,11&showposts=2"); while($recent->have_posts()) : $recent->the_post();?>
    showpost'u kaldırırsan listeleme de açılır yani sayfalama şeysi.

       <?php $recent = new WP_Query("cat=6,7,8,9,10,11"); while($recent->have_posts()) : $recent->the_post();?>
    konuları listeler..

    kullanımı:

                    <?php $recent = new WP_Query("cat=6&showposts=2"); while($recent->have_posts()) : $recent->the_post();?>
    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <?php the_content(__('Devamını Oku'));?>
    
                    <?php endwhile; ?>
    Alıntı
    <?php $recent = new WP_Query("cat=6&showposts=0"); while($recent->have_posts()) : $recent->the_post();?>
    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    <?php endwhile; ?>
    sadece bu çalıştı ama kategorinin altındaki konular da çıkıyor
    sadece kategori çıkmasını istiyorum ben