• Thanks for the great plugin! exactly what I need πŸ˜‰
    In my case, however, the sorting does not match the position of the posts.

    With the following filter, the order can be adjusted according to “menu-order”:

    
    
    function wpse73190_adjacent_post_sort( $orderby )
    {
        return "ORDER BY p.menu_order ASC LIMIT 1";
    }
    add_filter( 'get_previous_post_sort', 'wpse73190_adjacent_post_sort' );
    add_filter( 'get_next_post_sort', 'wpse73190_adjacent_post_sort' );
    

    Why is this necessary?
    If the order of the posts is changed using drag-and-drop (plugin), then the sorting of the function next_post_link & previous_post_link is no longer correct.

    Have a good day David

    • This topic was modified 1 year, 9 months ago by daveleeone.
  • The topic ‘Problem with sorting’ is closed to new replies.