Ready to get started?Download WordPress


[resolved] Get ID of adjacent posts when sorted by custom field (2 posts)

  1. dorich
    Posted 1 year ago #

    I want to get the ID of adjacent posts.

    For posts sorted chronologically you can use:


    Are there any standard methods for finding the adjacent post if the posts are sorted by custom field value.
    Unless its very simple my skills are not up to writing a new function for this purpose.


  2. dorich
    Posted 1 year ago #

    The plugin "Next/Previous Post Link Plus for WordPress" does provide the capability to return the ID of the next and previous post.

Topic Closed

This topic has been closed to new replies.

About this Topic