<?php get_header(); ?>
<!-- Container -->
<div id="content-wrap">
<div id="featuredpro">
<h4 style="margin-right:15px;">Featured entries</h4>
<?php query_posts('cat=3&showposts=3'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="featureditem">
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php
$top = get_post_meta($post->ID, "top", true);
if ($top != "")
{
$top = explode(",", $top);
foreach ($top as $picture)
{
echo "<img alt=\""; the_title(); echo"\" src='" . $picture . "' />";
}
}
?>
<?php the_excerpt('');?>
<div class="featureddetails"><?php the_time('M j, Y'); ?> | <?php comments_popup_link(__('Leave a comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read More »</a></div>
</div>
<?php endwhile; else : ?>
<?php endif; ?>
<div style="clear:both;"></div>
</div>
<div id="singlepage">
<div id="gallery">
<h4>Photo Gallery</h4>
<?php get_flickrRSS(); ?>
<div style="clear:both;"></div>
</div>
<div id="singlepageleft">
<h4>Albumler</h4>
<?php query_posts('cat=13&showposts=3'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$bottom = get_post_meta($post->ID, "bottom", true);
if ($bottom != "")
{
$bottom = explode(",", $bottom);
foreach ($bottom as $picture)
{
echo "<img alt=\""; the_title(); echo"\" src='" . $picture . "' />";
}
}
?>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_excerpt('');?>
<div class="details"><?php the_time('F j, Y'); ?> | <?php comments_popup_link(__('Leave a comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read More »</a></div>
<?php endwhile; else : ?>
<?php endif; ?>
</div>
<div id="singlepageright">
<h4>Yer Alti Tarihi</h4>
<?php query_posts('cat=3&showposts=7'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$bottom = get_post_meta($post->ID, "bottom", true);
if ($bottom != "")
{
$bottom = explode(",", $bottom);
foreach ($bottom as $picture)
{
echo "<img alt=\""; the_title(); echo"\" src='" . $picture . "' />";
}
}
?>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_excerpt('');?>
<div class="details"><?php the_time('F j, Y'); ?> | <?php comments_popup_link(__('Leave a comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read More »</a></div>
<?php endwhile; else : ?>
<?php endif; ?>
</div>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<div id="sidebar">
<?php get_sidebar(); ?>
</div><div style="clear:both"></div>
<!-- /Sidebar -->
</div>
<!-- /Content-wrap -->
</div>
<?php get_footer(); ?>
</body></html>bu kodları index.php içindeki kodlarla değiştir bakalım olacak mı? ama hepsini değiştir çünkü index.php'nin hepsi var içinde.