wmaraci reklam

Kategori bazlı konular çıksın istiyorum

4 Mesajlar 691 Okunma
smmexpress

hayaleturk hayaleturk Grafiker Kullanıcı
  • Üyelik 24.06.2013
  • Yaş/Cinsiyet 31 / E
  • Meslek Grafiker
  • Konum Bursa
  • Ad Soyad H** K**
  • Mesajlar 16
  • Beğeniler 3 / 3
  • Ticaret 0, (%0)



Merhaba arkadaşlar resimdede gördüğünüz yere kategori bazlı konular çıksın istiyorum lütfen yardımcı olurmsunuz kodda nereyi değitirirsem bu sonuca ulaşabilirim.?


http://www.hayaleturk.com/category/test



$args = array(
'ignore_sticky_posts' => true,
'showposts' => of_get_option('promax_latestpostnumber' ),
'orderby' => 'date', );
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
?>




















 

 

hayaleturk.com
wmaraci
reklam

TEHET TEHET Kullanıcı
  • Üyelik 04.10.2014
  • Yaş/Cinsiyet 32 / E
  • Meslek Tasarımcı
  • Konum Ankara
  • Ad Soyad M** A**
  • Mesajlar 791
  • Beğeniler 96 / 374
  • Ticaret 1, (%100)

$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args = array(
'ignore_sticky_posts' => true,
'showposts' => of_get_option('promax_latestpostnumber' ),
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'orderby' => 'date',
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
?>












hayaleturk

kişi bu mesajı beğendi.

hayaleturk hayaleturk Grafiker Kullanıcı
  • Üyelik 24.06.2013
  • Yaş/Cinsiyet 31 / E
  • Meslek Grafiker
  • Konum Bursa
  • Ad Soyad H** K**
  • Mesajlar 16
  • Beğeniler 3 / 3
  • Ticaret 0, (%0)

TEHET adlı üyeden alıntı


$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args = array(
'ignore_sticky_posts' => true,
'showposts' => of_get_option('promax_latestpostnumber' ),
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'orderby' => 'date',
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
?>














Yine aynısı çıktı kategori çıkmadı hocam yada benim bişey eklemem lazım mı koda?
 

 

hayaleturk.com

ykismetli ykismetli Tasarım Kullanıcı
  • Üyelik 22.08.2014
  • Yaş/Cinsiyet 29 / E
  • Meslek Grafiker ve Web Master
  • Konum İstanbul Avrupa
  • Ad Soyad Y** K**
  • Mesajlar 342
  • Beğeniler 34 / 73
  • Ticaret 28, (%100)
Buyrun hocam bu yardımcı olacaktır. http://www.hibestil.com/wp-kategoriye-gore-listeleme/
hayaleturk

kişi bu mesajı beğendi.

wmaraci
wmaraci
wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al