شرمنده ندیده بودم دوتا از اون <? php endwhile; endif; ?> توش هست!
این کد اصلی فایل index.php شما با تغییرات:
<?php get_header(); ?>
<div id="content">
<?php if ( $paged < 2 ) { // Do stuff specific to first page?>
<?php $my_query = new WP_Query('category_name=featured&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div class="featurepost" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','torn'); ?> <?php the_title(); ?>"> <?php the_title(); ?></a></h2>
<p class="postinfo"><?php _e('Posted by ','torn') ?> <?php the_author() ?> <?php _e(' on ','torn') ?> <?php the_time(__('m/j/y','torn')); ?> <?php _e(' in ','torn') ?> <?php the_category(', ') ?>
<div class="entry">
<?php the_content(__('Continue reading','torn')) ?>
</div>
<p class="postinfo2"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/del.gif" alt="del.icio.us" border="0" /> <?php _e('tag this','torn'); ?></a> | <a href="<?php the_permalink() ?>"><?php _e('permalink','torn'); ?></a> | <a href="<?php trackback_url() ?>"><?php _e('trackback url','torn'); ?></a> | <?php comments_popup_link(__('No Comments','torn'), __('1 Comment','torn'), __('% Comments','torn')); ?>
</div>
<?php endwhile; ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','torn'); ?> <?php the_title(); ?>"> <?php the_title(); ?></a></h2>
<p class="postinfo"><?php _e('Posted by ','torn') ?> <?php the_author() ?> <?php _e(' on ','torn') ?> <?php the_time(__('m/j/y','torn')); ?> <?php _e(' in ','torn') ?> <?php the_category(', ') ?>
<div class="entry">
<?php the_content(__('Continue reading','torn')) ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } /* اینجا اضافه شده */?>
</div>
<p class="postinfo2"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/del.gif" alt="del.icio.us" border="0" /> <?php _e('tag this','torn'); ?></a> | <a href="<?php the_permalink() ?>"><?php _e('permalink','torn'); ?></a> | <a href="<?php trackback_url() ?>"><?php _e('trackback url','torn'); ?></a> | <?php comments_popup_link(__('No Comments','torn'), __('1 Comment','torn'), __('% Comments','torn')); ?>
</div>
<?php endwhile; endif; ?>
<?php } else { // Do stuff specific to non-first page ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','torn'); ?> <?php the_title(); ?>"> <?php the_title(); ?></a></h2>
<p class="postinfo"><?php _e('Posted by ','torn') ?> <?php the_author() ?> <?php _e(' on ','torn') ?> <?php the_time(__('m/j/y','torn')); ?> <?php _e(' in ','torn') ?> <?php the_category(', ') ?>
<div class="entry">
<?php the_content(__('Continue reading','torn')) ?>
</div>
<p class="postinfo2"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/del.gif" alt="del.icio.us" border="0" /> <?php _e('tag this','torn'); ?></a> | <a href="<?php the_permalink() ?>"><?php _e('permalink','torn'); ?></a> | <a href="<?php trackback_url() ?>"><?php _e('trackback url','torn'); ?></a> | <?php comments_popup_link(__('No Comments','torn'), __('1 Comment','torn'), __('% Comments','torn')); ?>
</div>
<?php endwhile; endif; ?>
<?php } ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link(__('« Previous Entries','torn')); ?>
</div>
<div class="alignright">
<?php previous_posts_link(__('Next Entries »','torn')); ?>
</div>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
فقط اینو از توش پاک کن:
/* اینجا اضافه شده */