I’de like to show the excerpts of my new posts more detailed than of the older posts.
So my main page template includes:
for the first 10 posts (more words, images, links, …)
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_excerpt_reloaded(); ?>
<?php endwhile; ?>
and then for the next 10 posts
$posts = get_posts('numberposts=10&offset=10');
foreach($posts as $post) :
<?php the_excerpt(); ?>
<?php endforeach; ?>
On the main page this is ok, but on page 2 there are posts 21-30 (excerpt_reloaded) and then ones more 21-30 (excerpt). There should be 21-30 (excerpt reloaded) + 31-40 (excerpt).
- The topic ‘custom excerpts’ is closed to new replies.