next_post_link() on custom menu structure
The function behind the function behind the function… next_post_link(); is a wrapper for adjacent_post_link(); which then calls get_adjacent_post(); where the 3rd argument is $previous and set to true/false to get the previous or next post. This gives you two opportunities: Use the output or the query filter. Output filter This might sound easier, but you’ll … Read more