t4ko adlı üyeden alıntı: mesajı görüntüle
Hocam index.php'nin kodlarını atarsanız daha iyi yardımcı olunur.
<?php 
get_header(); 
$manset_kat = of_get_option(manset_kat);
$besli_ac = of_get_option(besli_ac);
$saribar_ac = of_get_option(saribar_ac);

$foto_kat = of_get_option(foto_kat);
$video_kat = of_get_option(video_kat);

$haber_blok_kat1 = of_get_option(haber_blok_kat1);
$haber_blok_kat2 = of_get_option(haber_blok_kat2);
$haber_blok_kat3 = of_get_option(haber_blok_kat3);
$haber_blok_kat4 = of_get_option(haber_blok_kat4);
$haber_blok_renk1 = of_get_option(haber_blok_renk1);
$haber_blok_renk2 = of_get_option(haber_blok_renk2);
$haber_blok_renk3 = of_get_option(haber_blok_renk3);
$haber_blok_renk4 = of_get_option(haber_blok_renk4);
?>
	<?php if($besli_ac == "evet") { ?>
	<?php besli_haber(); ?>
	<?php } ?>
	
	<?php if($saribar_ac == "evet") { ?>
	<!-- ######## sari-bar ########-->
	<div id="sari-bar">
		<div class="etiketler">
			<b><span class="icon-tags"></span>Popüler Etiketler: </b>
			<?php
			$etiketler = get_tags("number=5&orderby=count");
			foreach ( $etiketler as $etk ) {
			$etk_link = get_tag_link( $etk->term_id );
			?>
			<a href="<?php echo $etk_link; ?>">#<?php echo $etk->name; ?></a>
			<?php } ?>
		</div>
	</div><!--/sari-bar-->
	<?php } ?>
	
	<!-- ######## sol-->
	<div id="sol" class="t">
		<div class="anasayfa-manset t">
			<div class="degisen">
			<?php 
				query_posts('cat='.$manset_kat.'&showposts=10');
				while ( have_posts() ) : the_post();
				$manset_say++;
			?>
				<div class="ic" data-id="<?php echo $manset_say; ?>" data-link="<?php the_permalink(); ?>">
					<?php resim(640,300); ?>
					<div class="detay">
						<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
						<span>
							<a href="<?php the_permalink(); ?>"><?php the_excerpt(); ?></a>
						</span>
					</div>
				</div>		
			<?php endwhile;wp_reset_query(); ?>
			</div>
			<div class="tem"></div>
			<ul class="sayfalar t">
			<?php 
				query_posts('cat='.$manset_kat.'&showposts=10');
				while ( have_posts() ) : the_post();
				$manset_say_li++;
			?>
				<li><a href="<?php the_permalink(); ?>"><?php echo $manset_say_li; ?></a></li>
			<?php endwhile;wp_reset_query(); ?>
			</ul>
		</div><!--/anasayfa-manset-->
		
	 	
		<div class="galeri galeri-anasayfa">
			<div class="baslik">
				<h2>
					<a class="foto-a"><span class="icon-camera"></span>Foto Galeri</a>
					<a class="video-a"><span class="icon-facetime-video"></span></span>Video Galeri</a>
				</h2>
			</div>
			<ul class="foto">
			<?php 
				query_posts('cat='.$foto_kat.'&showposts=3');
				while ( have_posts() ) : the_post();
			?>
				<li>
					<a href="<?php the_permalink(); ?>"><?php resim(175,100); ?></a>
					<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
				</li>
			<?php endwhile;wp_reset_query(); ?>
			</ul>
			<ul class="video">
			<?php 
				query_posts('cat='.$video_kat.'&showposts=3');
				while ( have_posts() ) : the_post();
			?>
				<li>
					<a href="<?php the_permalink(); ?>"><?php resim(175,100); ?></a>
					<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
				</li>
			<?php endwhile;wp_reset_query(); ?>
			</ul>
		</div><!-- galeri foto -->
		
		<?php anasayfaHaberBlok($haber_blok_kat1,$haber_blok_renk1) ;?>
		<?php anasayfaHaberBlok($haber_blok_kat2,$haber_blok_renk2) ;?>
		<?php anasayfaHaberBlok($haber_blok_kat3,$haber_blok_renk3) ;?>
		<?php anasayfaHaberBlok($haber_blok_kat4,$haber_blok_renk4) ;?>
		
	</div><!--/sol-->
	
	
<?php wp_reset_query();get_sidebar(); ?>
	<?php query_posts('cat='.$sliderkat.'&showposts=6'); while ( have_posts() ) : the_post();$i++; ?>
	<?php endwhile;wp_reset_query(); ?>
<?php get_footer(); ?>