Forums

Offset postbypost archives by one? (3 posts)

  1. tiiimmt
    Member
    Posted 6 years ago #

    On my site I have a teaser of the latest news item displayed, and then I the five entries before that displayed as headlines. The problem is that the latest news item is also displayed here so it appears as a teaser, and as the first headline below the teaser. Is there a way to start the postbypost archive one entry previous?

    Tag I am using:
    <?php wp_get_archives('type=postbypost&limit=5&format=custom&before=<h2 style="padding: 4px 12px;border-bottom:1px solid white;">&after=</h2>'); ?>

  2. Kafkaesqui
    Moderator
    Posted 6 years ago #

    "Is there a way to start the postbypost archive one entry previous?"

    No. But you can duplicate what you're attempting here through get_posts(), which does offer an offset:

    http://codex.wordpress.org/Template_Tags/get_posts

  3. tiiimmt
    Member
    Posted 6 years ago #

    It's not immediately obvious to me how to just display the title, not the post.

    Any pointers?

Topic Closed

This topic has been closed to new replies.

About this Topic