WordPress.org

Ready to get started?Download WordPress

Forums

Excluding Child Posts When Using next_post_link (3 posts)

  1. shagdirty
    Member
    Posted 2 years ago #

    Hi. I've got a custom post type and need to exclude a post's child posts on the single page when using next_post_link / previous_post_link. I've searched up and down here and on the web but no luck. Anyone want to steer me in the right direction?

    thanks

  2. Baden
    Member
    Posted 1 year ago #

    Hey shagdirty, did you ever get this issue sussed out? Trying to do the same thing, and am coming up short on info.

  3. shagdirty
    Member
    Posted 1 year ago #

    nope. I had a finite number of posts so the solution was hard-coded logic to skip those particular two/three child posts. let me know if you end up figuring anything out though.

Topic Closed

This topic has been closed to new replies.

About this Topic