$posttags = get_the_tags();
$count=0; $sep='';
if ($posttags) {
	echo 'Tags: ';
	foreach($posttags as $tag) {
		$count++;
		echo $sep . ''.$tag->name.'';
$sep = ', ';
		if( $count > 7 ) break; //kac adet etiket gorunsun
	}
}
?>Şimdi bu kodu kategoriler için nasıl uyarlayabilirim?
Şuanki kategori gösterim kodum
ID,'category', ' ', ', ', ' ' ); ?>Kategoriler için sınırlama:
$postcategory = get_the_category();
$count=0; $sep='';
if ($postcategory) {
	echo 'Categories: ';
	foreach($postcategory as $category) {
		$count++;
		echo $sep . ''.$category->name.'';
$sep = ', ';
		if( $count > 2 ) break; //kac adet kategori gorunsun
	}
}
?>
  