Support

Account

Home Forums Front-end Issues On single.php: get prev and next post links in the order of custom field Reply To: On single.php: get prev and next post links in the order of custom field

  • Rather than creating a custom query to get the posts you should look at pre_get_posts https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts. I believe that if you use this hook to create a filter that the next_post_link() and previous_post_link() functions will return the correct posts.