Open jeffreybarry opened 5 years ago
Technically, this is rather simple to implement. However, the default next/previous navigation in WP is chronological according to when the posts were entered. That might not be the expected navigational pattern in a literary magazine.
It would be possible to create an ordered list and build the navigation on that list.
Ability to navigate among posts based on the author of the posts.
See
add_filter( "get_next_post_where", function($where, $in_same_term, $excluded_terms, $taxonomy, $post){
$where .= " AND p.post_author='".$post->post_author."'";
return $where;
}, 10, 5);
add_filter( "get_previous_post_where", function($where, $in_same_term, $excluded_terms, $taxonomy, $post){
$where .= " AND p.post_author='".$post->post_author."'";
return $where;
}, 10, 5);
Could have a link to the TOC at the bottom.
Would be nice to move through the poems by a navigational arrow from work to work, especially from the same poet to another.