Get the right prev/next post link when order posts by menu_order

There are 2 functions in WordPress to let you display previous and next post links: previous_post_link and next_post_link. In general, they work so well and really save a bunch time when coding a theme. Recently in one of my projects, I created several custom post types, and made the posts ordered by menu_order. In such …

Read moreGet the right prev/next post link when order posts by menu_order