Thanks! I think that sent me on the right track, but I’m new to WP & php so still banging my way through.
On the front page, I want to display the latest post in full, and older posts in excerpt.
I can display the first post in full and can get a bulleted list of titles/links for older posts. When I try to display excerpts for older posts, things fall apart.
Although the titles display correctly, the author and excerpt for what should be older posts all come from the latest post.
Can you point me to some reference to help clear this up?
Thanks!
Here’s a simplified version of the code I’m using:
<?php
get_header();
query_posts('posts_per_page=1'); //returns only the front page
?>
<div id="content">
<?php while ( have_posts() ) : the_post() ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
deleted title/meta stuff
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">»</span>', 'your-theme' ) ); ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
</div>
</div>
<?php endwhile; ?>
<?php
global $post;
$myposts = get_posts('numberposts=5&offset=1');
foreach($myposts as $post) :
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
deleted title/meta stuff
<div class="entry-content">
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">»</span>', 'your-theme' ) ); ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
</div>
</div>
<?php endforeach; ?>
</div>