benzer.php dosyasındaki kodlar bunlar. bu kodlar üzerinde mi değişiklik yapmam gerekiyor
<div class="videoList">
<ul>
<?php
$ozelalan = fs_get_option('fs_refozel');
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'showposts'=>6, // Gösterilecek benzer yazý sayýsý
'caller_get_posts'=>1,
'orderby' => 'rand'
);
$my_query = new wp_query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) {
$my_query->the_post();
$resim='';
?>
<li>
<div class="image">
<a href="<?php the_permalink(); ?>">
<span class="play"></span>
<?php if (get_post_meta($post->ID, 'hd', true) != '') : ?><span class="hd"></span><?php endif; ?>
<?php if (has_post_thumbnail()) : $resim = get_the_post_thumbnail($post->ID, 'thumb'); elseif (get_post_meta($post->ID, $ozelalan, true) != '') : $resim='<img src="' . get_post_meta($post->ID, $ozelalan, true) . '" />'; else : $resim=''; endif;
if($resim<>'') {$res = bolelim($resim,'src="','"'); } else { $goster=0; }?>
<?php if($res[0]<>'Array' || $goster<>0) { ?><img src="<?php echo $res[0]; ?>" alt="img1" /><?php } ?>
</a>
</div>
<div class="fRight">
<a href="<?php the_permalink(); ?>" class="name"><?php echo ayesoft_baslik(get_the_title()); ?></a>
<a href="<?php echo get_the_author_link(); ?>" class="genr"><?php echo get_the_author(); ?></a>
<span class="date"><?php echo get_the_date('d/m/Y'); ?></span>
</div>
</li>
<?php
}
}
wp_reset_query();
}
?>
</ul>
</div>