WordPress.org

Forums

get_adjacent_post help! (1 post)

  1. spamherefool
    Member
    Posted 3 years ago #

    I am attempting to create a "next post" link using get_adjacent_post();

    My code is below, it does display a "next post" but the logic appears off, as it rarely displays the correct "next post".

    For example, the "next post" link from on the URL below actually links to the last post.
    http://thoughtforfood.foodthinkers.com/oysters-rock-this-fella/

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic