A place to talk about the Rin and Manji themes
You are not logged in.
Not sure which part I should edit in teh index.php file to shrink the length of the blog posts which appear on our main page.
We've posted 10 stories on our Blog http://www.iwantmyess.com as "Posts" and would like to only keep the newest three on the main page.
I know the chunk of code I need to edit is as follows:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<div class="title" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</div>
<br>
<h3><span class="posted"><?php _e("Posted on "); ?></span>
<?php the_time('l j F Y',display); ?>
</h3>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
</div>
<div class="meta">
<div class="author">
<?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?>
</div>
<?php _e("Filed under:"); ?> <?php the_category(' and') ?>
</div>
<div class="feedback">
<?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
</div>
<?php wp_link_pages(); ?>
<!--<?php trackback_rdf(); ?> -->
</div> <!-- Closes the post div-->
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
<div class="postnavigation">
<div class="rightdouble">
<?php posts_nav_link('','','previous posts + »') ?>
</div>
<div class="leftdouble">
<?php posts_nav_link('','« + newer posts ','') ?>
</div>
</div>
</div> <!--Closes the contentright div-->
</div> <!-- Closes the content div-->
<div id="bottomcontentdouble">
</div>
</div> <!-- Closes the container div-->
<?php include('footer.php'); ?>
Any help would be GRRREAT! Thanks,
Marilee
Offline
Just login to your WordPress admin interface, go to Options/Reading, and set "Show at most:" to "3 posts".
Last edited by MacManX (09-12-2005 18:11:42)
Offline
Durrrr... Thanks soo much! Worked like a charm I guess I've gotten so busy customizing other parts of the blog never thought to go to the Options tab. --Marilee
Offline