WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dorich
    Member
    Posted 1 year ago #

    I want to get the ID of adjacent posts.

    For posts sorted chronologically you can use:

    get_adjacent_post

    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.

    Thanks.

  2. dorich
    Member
    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