WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] previous_post_link and next_post_link - exclude a POST (2 posts)

  1. trixienolix
    Member
    Posted 2 years ago #

    QUICK VERSION: How can i exclude a certain post (not category) when using previous_post_link and next_post_link ?

    LONG VERSION:
    I'm using previous_post_link and next_post_link to cycle through posts within a certain category or custom post type.

    My problem is that I've used a post to add some text at the top of the archive.php so there's some "intro" text above the list of posts within that CPT.

    So when I use previous_post_link on single.php, it picks up this intro text post. So i want to exclude it from previous_post_link.

    Any help greatly appreciated

  2. trixienolix
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic