When I use the_post_navigation() to get the previous and next links, it takes the date as the order instead of the menu_order. How can I get it to work right in this case?
I have a custom-post-type called 'artists'. I list them by the order attribute (menu_order).
When I use the_post_navigation() to get the previous and next links, it takes the date as the order instead of the menu_order. How can I get it to work right in this case?
previous-post-link
menu-order
Share
Improve this question
asked Aug 4, 2015 at 2:33
waterschaatswaterschaats15011 silver badge88 bronze badges
Add a comment
|
1 Answer
1
Reset to default
0
Maybe this function is better to use get_adjacent_post.
I have not tested it yet but it seems to more flexible than the_post_navigation() function.
FYI, the_post_navigation() uses this function internally to retrieve the next and previous posts.