WordPress.org

Forums

custom excerpts (1 post)

  1. Robert
    Member
    Posted 9 years ago #

    I'de like to show the excerpts of my new posts more detailed than of the older posts.

    So my main page template includes:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    ...
    <?php the_excerpt_reloaded(); ?>
    <?php endwhile; ?>
    for the first 10 posts (more words, images, links, ...)
    and then for the next 10 posts

    <?php
    $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).

    Hm. Solution?

Topic Closed

This topic has been closed to new replies.

About this Topic