The simplest webcomics navigation could work just as the WordPress default post navigation does. It would just show links to the previous and to the next comic. However, webcomics often have additional navigation links to the first, last, current or latest comic. Sometimes a random button link is added. Most webcomics have a similar setup, due to lack of choice in themes and plugins, but also because it makes sense to navigate a story that way. It tries to replicate the physical book attributes. Another usual setting on the web is for comics episodes to show up in reverse chronology. Usually, the latest episode, page or strip shows first on the homepage. That is the default WordPress blog post structure as well, but you might want to change that.
Retrieve the first and last comic posts
Anyway, to design a navigation bar for comics or webcomics in WordPress, you can build on existing variables, such as
$next. Assuming you have a “comic” custom post type in
function.php, this code will retrieve the first and last comic post.
This method works fine for a single story but still needs improvement to sort comics by categories and enable series.
Leave a Comment
Your email address will not be published. Required fields are marked *