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.
@s_ha_dum
in a comment. I have code that will reorder alphabetically by title. It should be adaptable for use with a meta field.