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?