WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] equivalent to get_next/previous_posts_link for single posts (3 posts)

  1. leemon
    Member
    Posted 3 years ago #

    Hi!

    Are there any equivalent functions to the get_next/previous_posts_link ones for single posts? I've tried get_next/previous_post_link (no 's') but apparently they don't exist.

    Thanks

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    there is no direct equivalent -
    you need to work with get_adjacent_post()

    http://codex.wordpress.org/Function_Reference/get_adjacent_post

  3. leemon
    Member
    Posted 3 years ago #

    thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic