ayvabiz adlı üyeden alıntı: mesajı görüntüle
peki ana sayfanda da 2 2 tane konu başlığı ve bu konuların özeti mi görünüyor.
Hayır yazının tamamı oluyor.yazı sayısını adminden 10 yapsam anasayfada da kategori içlerinde de 10 yazı çıkıyor.

Gangstamonu adlı üyeden alıntı: mesajı görüntüle
archive.php yi koyarmısın buraya
üstad biri archives.php diğeri archive.php

Archives.php kod:

<?php
/*
Template Name: Archives
*/
?>

<?php get_header(); ?>

<?php include(TEMPLATEPATH."/left.php");?>

<?php include(TEMPLATEPATH."/right.php");?>
<div id="middlepic"></div>
<div id="content">

<?php get_header(); ?>
<div id="arch">
<h2>Archives</h2>
<br/>
Archives by Month:
  <ul>
    <?php wp_get_archives('type=monthly'); ?>
  </ul>

Archives by Subject:
  <ul>
     <?php wp_list_cats(); ?>
  </ul>
</div>
</div>

<?php get_footer(); ?>
Archive.php kod:

<?php get_header(); ?>

<?php include(TEMPLATEPATH."/left.php");?>

<?php include(TEMPLATEPATH."/right.php");?>
<div id="middlepic"></div>
<div id="content">


		<?php if (have_posts()) : ?>

		<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>				
		<h3><?php echo single_cat_title(); ?></h3>
		
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h3>Archive for <?php the_time('F jS, Y'); ?></h3>
		
	 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h3>Archive for <?php the_time('F, Y'); ?></h3>

		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h3>Archive for <?php the_time('Y'); ?></h3>
		
	  <?php /* If this is a search */ } elseif (is_search()) { ?>
		<h3>Search Results</h3>
		
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		Author Archive

		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		Blog Archives

 
		<?php } ?>



               <?php next_posts_link('&laquo; Previous Entries') ?>
		<?php previous_posts_link('Next Entries &raquo;') ?>
		


		<?php while (have_posts()) : the_post(); ?>

<div class="postspace3">
	</div>	
				<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

				<b><?php the_time('l, F jS, Y') ?></b>

				<?php the_excerpt(); ?>


		<?php endwhile; ?>

               <?php next_posts_link('&laquo; Previous Entries') ?>
		<?php previous_posts_link('Next Entries &raquo;') ?>

	<?php else : ?>

		Not Found
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>
		

</div>

<?php get_footer(); ?>