Forums

get_adjacent_post help! (1 post)

  1. spamherefool
    Member
    Posted 10 months 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]

Reply

You must log in to post.

About this Topic